Forum Moderators: bakedjake

Message Too Old, No Replies

Configure cgi-local

Change my default cgi directory

         

Edge

2:46 pm on Nov 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I'm migrating to a new VPS host from a basic shared host. I beleive to minimalize setup issues I want to continue to use the cgi-local directory instead of the cgi-bin.

How do I configure my server to execute from cgi-local?, if neede that is..

mcavic

3:07 pm on Nov 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In my Apache configuration, I have:

<Directory />
Options FollowSymLinks ExecCGI Includes
AllowOverride All
</Directory>

This lets me execute CGIs from any directory.

Instead of / you can use the full path name to your cgi-local directory.

Check to make sure that your cgi-bin directory works first, before changing the config.

Edge

3:50 pm on Nov 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Ok, I found this in my apache configuration (httpd.conf) file:

# "/usr/local/apache/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/usr/local/apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

</IfModule>
# End of aliases.

I assume I need the change "<Directory "/usr/local/apache/cgi-bin">" to <Directory "/usr/local/apache/cgi-local"> if I want my cgi scripts to run from there.

mcavic

4:47 pm on Nov 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yep, that should work. Of course, you need to restart apache after a configuration change.