[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] Method POST Not Allowed (Front Page FormBot)



When submitting a newly created form I get a 405 message - Method Not
Allowed - The requested method POST is not allowed for the URL
/3/pra/prov_dir_signup.shtml

I have tried for the last six hours to find a solution to this problem.  I
searched all the Cobalt resources, Google/Linux and even searched a
FP2000/Unix Svr Ext group but could not find a solution.

I started with the Apache site and the FAQ for which this question was
listed as number 3.  I tried to add a ScriptAlias for the Virtual Host in
the httpd.conf file, but this only made things worse.  I am using the
dreaded FrontPage form bot and the shtml.exe Confirmation form.  There are
other scripts on the site that are all located in the web/cgi-bin sub-dir
and work fine.  It is just this new form in a relatively new sub-dir.

My virtual host's section of the httpd.conf file for this site looks like
this:

NameVirtualHost 64.70.255.132
<VirtualHost 64.70.255.132>
ServerName www.prndev.org
ServerAdmin site4
DocumentRoot /home/sites/site4/web
ServerAlias prndev.org
RewriteEngine on
RewriteCond %{HTTP_HOST}                !^64.70.255.132(:80)?$
RewriteCond %{HTTP_HOST}                !^www.prndev.org(:80)?$
RewriteRule ^/(.*)                      http://www.prndev.org/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site4/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType    text/html     .shtml
</VirtualHost>

I just don't know what to point the Script Alias to.  I tried inserting
after the AliasMatch this ScriptAlias directive:

"ScriptAlias /usr/local/frontpage/version4.0/_vti_bin/ /3/pra/"

But it didn't work.

The file name containing the form is /3/pra/prov_dir_signup.shtml.  I have
three .htaccess files set up, one for each folder.

For / -

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.prndev.org
AuthUserFile /home/sites/site4/web/_vti_pvt/service.pwd
AuthGroupFile /home/sites/site4/web/_vti_pvt/service.grp



For /3/ -

RewriteEngine on
RewriteOptions inherit

RewriteCond %{HTTP_COOKIE} !(.+)he81JMXC489LY(.*)
RewriteCond %{HTTP_COOKIE} !(.+)hewm0RJEnLauc(.*)
RewriteCond %{HTTP_COOKIE} !(.+)heyTVcOJ1ep1s(.*)
RewriteRule (.+) /cgi-bin/upgrade.cgi?page=level1_2_3.htm [L]

RewriteCond %{HTTP_COOKIE} (.+)he81JMXC489LY(.*)
RewriteRule (.+) /cgi-bin/upgrade.cgi?page=level2_3.htm [L]

RewriteCond %{HTTP_COOKIE} (.+)hewm0RJEnLauc(.*)
RewriteRule (.+) /cgi-bin/upgrade.cgi?page=level3.htm [L]

And finally for, /3/pra/ -

RewriteEngine on
RewriteOptions inherit

# Lets spiders in

RewriteCond %{HTTP_USER_AGENT}  ^AlkalineBOT*
RewriteRule ^(.*)$ %{REQUEST_FILENAME} [L]
RewriteCond %{HTTP_USER_AGENT}  ^appie*
RewriteRule ^(.*)$ %{REQUEST_FILENAME} [L]
RewriteCond %{HTTP_USER_AGENT}  ^Arachnophilia*
RewriteRule ^(.*)$ %{REQUEST_FILENAME} [L]
RewriteCond %{HTTP_USER_AGENT}  ^ArchitextSpider*
RewriteRule ^(.*)$ %{REQUEST_FILENAME} [L]

----Trim ----

I have also checked the ownership of the .htaccess files (nobody) and the
permissions of the 3/pra directory:

drwxrwsr-x   6 nobody   site4        1024 Nov 27 16:29 .
drwxrwsr-x   5 nobody   site4        1024 Aug  8 14:17 ..
-rwxr--r--   1 nobody   site4       18629 Jul 27 10:01 .htaccess
-rwxr--r--   1 nobody   site4       18629 Jul  5 18:42 .htaccess.FP98
-rwxr--r--   1 root     site4       18629 Nov 27 16:29 .htaccess.pv.old
drwxrwsr-x   2 nobody   site4        1024 Nov 27 13:31 _vti_cnf
-rw-r--r--   1 nobody   site4        3182 Oct  8 22:22 anav_i2pro.htm
drwxr-sr-x   3 nobody   site4        1024 Nov 27 10:42 ancillary_care
-rw-r--r--   1 nobody   site4       53601 Oct 11 16:21
nycdohbioterrorprocs.htm
-rw-r--r--   1 nobody   site4       24071 Nov 27 13:31 prov_dir_signup.shtml
-rw-r--r--   1 nobody   site4       16918 Nov  6 16:27 provdirreview.htm
-rwxr-xr-x   1 nobody   site4        5476 Nov  6 16:24 provider.shtml
-rwxr-xr-x   1 nobody   site4        2285 Nov 27 10:41 providerdir.shtml
-rw-r--r--   1 nobody   site4       13117 Nov 27 10:18
providerfampract.shtml
-rwxr-xr-x   1 nobody   site4       14237 Nov 27 10:20 providerid.shtml
-rw-r--r--   1 nobody   site4       13991 Nov 27 10:21 providerim.shtml
-rwxr-xr-x   1 nobody   site4        5568 Nov  6 16:24 providerpc.shtml
drwxr-sr-x   3 nobody   site4        1024 Nov 27 10:10 specialists
drwxrwsr-x   3 nobody   site4        1024 Nov 27 08:39 toolbox

Any help would be appreciated.  I just can't figure this one out.

John
jhmiii@xxxxxxxxxxxxxxxxxxx