Allowing CGIs to Execute in Any Directory
To allow CGIs to execute in any directory on your web server do the following:
- Uncomment out the following
AddHandler directive in the
~/www/conf/httpd.conf file on your Virtual Server:
AddHandler cgi-script .cgi
You may want to add a Handler for perl scripts:
AddHandler cgi-script .pl
NOTE:
If your Virtual Server was configured before Dec 8, 1998 you should
instead uncomment out the following AddType directive in the
~/www/conf/srm.conf file:
AddType application/x-httpd-cgi .cgi
You may want to add a Type for perl scripts:
AddType application/x-httpd-cgi .pl
|
- Add an
ExecCGI option to the Options
for your Root Document declaration
(<Directory /usr/local/etc/httpd/htdocs>) in the
~/www/conf/httpd.conf file on your Virtual Server:
Options Indexes FollowSymLinks ExecCGI
|
NOTE:
If your Virtual Server was configured before Dec 8, 1998 you will need to make
this change in the ~/www/conf/access.conf file instead.
|
- Restart Your Virtual Server Web Server
|
|