Discussion Locked

Apache distributed cgi-bin directory que

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Runnning name virtual servers under apache, with redhat 6.0, the apache install is the standard installed with redhat (I am going to change this soon, but for right now it is still running this way). I can get distributed log files to work fine, but I cannot figure out how to have seperate cgi-bin directories. from RTFM, I have discovered 2 options for doing this, one kinda like this..

AllowOverride None
Options +ExecCGI

and I forgot the exact wording of the other option, however it was a line tag on the end of the virtual host set. At any rate, none of these are working. Am I forgetting something? do I need to take out the other settings?

7 replies

by zeenox

the options parameter is supposed to be without the +, so try this:

AllowOverride None
Options ExecCGI

by victor_f

zeenox is correct but, also you could just add a ScriptAlias directive within the directive and make sure that it goes after the closing for the cgi-bin directory for each virtualhost, using your example the whole entry would be:

ServerAdmin webmaster@whatever.org
DocumentRoot /home/whatever/public_html
ServerName www.whatever.org
ErrorLog etc....
LogFormat etc....
CustomLog etc...

AllowOverride None
Options ExecCGI

ScriptAlias /cgi-bin/ /home/whatever/cgi-bin/

Final note: make sure that your cgi-bin directory is chmoded 755 to allow execution.
Hope this helps.

by spepper

Solution number 2 is correct, but may be incomplete depending on your setup. You may need to add the follwoing line after the ScriptAlias line:

AddHandler cgi-script .cgi

This discussion is closed to new replies.