View Full Version : need help with config

01-13-2010, 05:21 PM
I have a cgi program that is in /home/whatever/bin/ and i want to run it from any website on the same server so that there is just one set of files and not one for each website

so instead of www.a.com/cgi-bin/a.cgi or www.b.com/cgi-bin/a.cgi i want to be able to do www.a.com/bin/a.cgi www.b.com/bin/a.cgi

I have changed this in virtual host from

ScriptAlias /cgi-bin/ /home/a/public_html/cgi-bin/


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

but running www.a.com/bin/a.cgi gives me file not found

we use to be able to do it till the hosting company upgraded apache and now it does not work. they didnt backup the config files and its been years so i dont remeber what files and commands to change in the httpd and the srm.conf

help is appreciated


01-13-2010, 07:35 PM
Check out the Apache documentation for cgi (http://httpd.apache.org/docs/2.2/howto/cgi.html). It looks like you just need to modify your script-alias line or else change the path you're trying to use - compare "cgi-bin" and "bin".