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 in any directory

Status
Not open for further replies.

steam

ISP
Jul 17, 2000
51
IT
Hi<br>I don't know if you can help me with this problem. I hope so.<br><br>the httpd.conf in apache server tells the following:<br>------<br># If you want to use server side includes, or CGI outside<br># ScriptAliased directories, uncomment the following lines.<br><br>#AddHandler cgi-script .cgi<br>------<br><br>When I uncomment AddHandler and try to execute a cgi outside the scriptaliased directory I receive 403 error (forbidden).<br><br>Do you know how this could be fixed?<br><br>Thank you.<br><br><br><br><br><br><br>
 
Steam,<br><br>&nbsp;Hi.&nbsp;&nbsp;I'm looking at my version of Apache's configuration file and it says:<br>&quot;AddHandler allows you to map certain file extensions to &quot;handlers&quot;, actions unrelated to filetype.&nbsp;&nbsp;These can be either built into the server or added with the Action command (see below)<br>Format: AddHandler action-name ext1&quot;<br>#To use CGI scripts:<br>AddHandler cgi-script .cgi<br># To use server-parsed HTML files<br>Addtype text/html .shtml<br>AddHandler server-parsed .shtml <p>Jon Zimmer<br><a href=mailto:b0rg@pcgeek.net>b0rg@pcgeek.net</a><br><a href= > </a><br>You WILL be assimilated, or we can write a script to parse you out.
 
It doesn't work. Also it is not related to ssi tags, which will be of use but not in this case.<br>How do you explane the 'forbidden' message? If we understand the reason we can also configure it properly....<br><br>I saw there are severs allowing any domain to execute scripts in all directories simply by changing permissions. But I don't know how to reach the result :(
 
Ok guys... I helped myself.<br>If there is a reader interested in this subject.... you can achieve it by adding an Option. Here is the line<br><br>Options ExecCGI
 
Hi,<br><br>I have the exact same problem!!<br>I'm studying on it...
 
Couldn't it be that User Nobody & Group Nobody have to be changed to the owner of the folder and the .cgi file that has to be executed? Remember also that file's chmod must be higher than 644: try 777 and then go down until you receive that awfully error 403.<br>Me, I've tried quite all things I said, except to verify that folder and directory ownership correspond to user specified into httpd.conf.<br>If you have any suggestions, please let me know!<br><br>Thank you a lot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top