If your web server does not allow you to run CGI scripts outside of the 'cgi-bin' directory, you can enable CGI. Check with your system administrator or web hosting company before doing so.
To enable CGI, create a .htaccess file following the main instructions and guidance which includes the following text:
AddHandler cgi-script .cgi
Options +ExecCGI
|
|
The above lines tell the Apache Web Server to allow firstly, process '.cgi' files as CGI scripts, and secondly to enable CGI within the directory.
|
|
<- Enable SSI with .htaccess
|
Disable directory listings ->
|
|
Visitor Comments and Responses
|
|
Novice |
Article Rating: 10 out of 10 |
Added both lines to .htaccess worked.
 |
|
Moderator |
Article Rating: 10 out of 10 |
Contact your system administrator for advice, using this may go against the server configuration or the options may be restricted for security reasons...
 |
|
me |
Article Rating: 5 out of 10 |
I added that to an .htaccess file on my fedora core 3 server, and it would send me to the 404 error page for some reason. As soon as I cleared out the htaccess file, I was allowed to pull the page up in that directory.
 |
|
Average Rating: 7.67 out of 10 (51 Votes)
|
|
|