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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cgi post method not allowed

Status
Not open for further replies.

druggist

Technical User
Oct 11, 2000
36
US
CGI POST METHOD NOT ALLOWED

thats what i get. i have installed some solid scripts that I know work. They come in a directory structure that i dont want to destroy. I want to be able to direct my apache server to a different cgi-bin than the one that is already specified. will that mess anything up? can i do that? how??

thanks
 
I want to be able to direct my apache server to a different cgi-bin than the one that is already specified. will that mess anything up? can i do that? how??

Yep. You can do that. You will need to modify your httpd.conf file and add a scriptAlias. The file is well commented. Search on 'scriptAlias' and you will find
where to add one.... read the comments and follow the directions. It is not hard.


The reason for having a segregated cgi-bin directory is to keep the web server process from being able to run anything it should not. For instance, you would not want you web server to be able to run the passwd command. So, if you create a new scriptAlias, do not put anything in there that you don't want people (some of them are mean) to be able to run.



keep the rudder amid ship and beware the odd typo
 
that didnt work. as a matter of fact, we noticed that when we change the suffix of the script alias, nothing changed, but when we changed the prefix, then the html couldnt even be opened.

at this point im stumped.

the cgi that we want to execute is not in a cgi-bin per-se, it is in a directory that is correctly referred to in the html form.

we keep getting the "method not allwoed" error.

help?!!!
 
one more thing,,,

it was suggested that i set permissions to allow apache to accept posted data. how do i do this??
 
OK .... let me get a little wider view here.....

The basics:
What OS?
What web server? ( I assumed apache and it may not be.)
( I hope it is apache. I know nothing about the others.)


Can you run any CGI's at all?

- If not, we need to back up to get simple CGI stuff up and running.
You might take a look at the FAQ in this forum about simple CGI's with Perl.

- If yes, then it is a simple matter of tweaking the httpd.conf file to allow
CGI in directories other than your default 'cgi-bin'




keep the rudder amid ship and beware the odd typo
 
i really appreciate your help. i was able to figure it all out.

i needed to implement a handle and a directive that would allow me execute cgi in a folder other than the cgi-bin.

i found the tutorial at

along with many more valuable resources...

thanks so much

druggist
 
Very good. 'Glad you got it going.


keep the rudder amid ship and beware the odd typo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top