Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Method Not Allowed (405)

Status
Not open for further replies.

Henning

Programmer
Mar 18, 2002
10
0
0
DE
Hopely someone can help me:
Which setting in Apache is wrong if i get this error msg?
Method Not Allowed
The requested method POST is not allowed for the URL.
Apache/1.3.20 Server at subdomaine.maindomaine.de Port 80

Gretting Henning
 
Hi,

If its in your /cgi-bin/ directory (as pointed to by your ScriptAlias in httpd.conf) then its possible you forgot to 'chmod o+x scriptname' .

If its outside that directory, you need to have the 'ExecCGI' option turned on in a <Directory> container, or in a .htaccess file if you have set 'AllowOverride All' to permit overrides of the defaults in parent directories. For example using a <Directory> container :

<Directory /web/docs>
Options ExecCGI FollowSymLinks
</Directory>

You also need the following in httpd.conf, but from that error code you probably have this one :

AddHandler cgi-script .cgi .pl


If its still a problem, post a bit more info on the server (linux/win ?) and directories involved, etc. Also, advise whether have you successfully run any other cgi scripts.



Hope this helps
 
Thanks in advance
I use Linux RedHat 7.2 Server with Apache 3.3.
The mirical is that some cgi-scripts are runing without an error and some have error`s. The setting in httpd.conf is correct and the scripts are in the same dir. I know that this doesn´t give so much infos sorry but i do not know more infos by now.
Althouw i have set the chmod.
Henning
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top