[thelist] Apache cgi-bin configuration error

Phil Turmel pturmel-webdev at turmel.org
Fri Nov 17 14:39:07 CST 2006

Chris Ditty wrote:
> I am having a weird problem trying to configure apache to run cgi
> scripts.  In the apache httpd.conf file, I have this.....
> ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"
>     <Directory "/usr/local/apache/cgi-bin">
>         AllowOverride None
>         Options None
>         Order allow,deny
>         Allow from all
>     </Directory>
> and in the VirtualHost, I have this....
> ScriptAlias /cgi-bin/ /home/refugefo/public_html/cgi-bin/
> but when I try and run a script in the cgi-bin directory, I see this
> in the error_log file.
> File does not exist: /home/refugefo/public_html/refuge/cgi-bin/scriptname
> Nowhere in the httpd.conf file is public_html/refuge/
> The script has been properly chmod and chown.  What am I missing?  I
> can't figure out where that second refuge is coming from.


I'd look for a rewrite rule that adds 'refuge' to selected URIs.  You
might have to add a rewrite condition that exempts 'cgi-bin'.


More information about the thelist mailing list