[NTLUG:Discuss] parsing index.cgi
David Camm
dcamm at advwebsys.com
Fri Sep 26 17:47:26 CDT 2003
cgi execution is NOT turned on by default in a user's web space.
let's say that your site's document root is /home/bobby
in apache's config file you would need the following:
<Directory /home/bobby>
Options ExecCGI
AddHandler cgi-script .cgi
</Directory>
you might want other options (like followsymlinks). see the apache docs at
httpd.apache.org.
on our servers, in the rare instances where we have cgi code running in a user's
space, we put the above into the user's virtual host definition like so:
<VirtualHost 1.2.3.4>
ServerName www.bobby.com
DocumentRoot /home/bobby
<Directory /home/bobby>
Options ExecCGI [perhaps others, perhaps All]
AddHandler cgi-script .cgi [.pl]
</Directory>
more stuff....
</VirtualHost>
Bobby Wrenn wrote:
> I may be showing my ignorance here. But it happens often enough that it
> no longer embarrasses me.
>
> Running confguration:
>
> RH9.0 with apache and every apache module I can find load via RPM.
>
> I am trying to install a web based file checkout system.
> http://sourceforge.net/projects/cms
>
> When I load the file index.cgi in a browser I get the source listing of
> the file. I have added index.cgi to the DirectoryIndex directive in
> httpd.conf.
>
> Any ideas what I am missing?
>
> TIA
> Bobby
>
>
>
>
>
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
>
More information about the Discuss
mailing list