[Tfug] Enableing CGI on Apache
George Cohn
gwcohn at simplybits.net
Tue Aug 7 10:59:07 MST 2007
doug1 at email.arizona.edu wrote:
> Hi,
> how do you enable CGI on Apache, I am on a Fedora 6 box?
>
http://httpd.apache.org/docs/1.3/misc/FAQ.html#CGIoutsideScriptAlias
Usually something like this in the Apache configuration:
DocumentRoot /home/domain
ScriptAlias /cgi-bin/ /home/domain/cgi-bin/
AddHandler cgi-script .cgi .pl
<Directory "/home/domain/cgi-bin">
AllowOverride None
Options +ExecCGI
Order allow,deny
Allow from all
</Directory>
The "domain" is usually the name of the subdirectory your web files
reside in.
In this example, any scripts that end in cgi or pl are executed.
George Cohn
More information about the tfug
mailing list