spdstores
01-13-2010, 04: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/
to
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
Thanks
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/
to
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
Thanks