httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rich Bowen <>
Subject Re: setting up apache to accept cgi
Date Wed, 03 Jul 2002 10:53:27 GMT
On Wed, 3 Jul 2002, John Green wrote:

> <directory /var/www/protected-cgi-bin>
> allow from localhost
> the Exec option is set so the directory /var/www/cgi-bin should be fine to
> accept cgi scripts.
> I tried in my web broswer putting http://localhost/cgi-bin/printenv
> with printenv being the cgi test script.
> when i do this it comes up with the error forbidden access to
> /cgi-bin/printenv
> i am not sure what i am doing wrong,
> if anyone can see where i am going wrong, or give any advice to setting my
> machine up to accept cgi-scripts i would be very greateful.

Step one is (and this is always the case when you encounter an error)
look in the error logs.

Here's a hint, however. By default, printenv comes without the execute
bits set. This is just for general security reasons - every Apache
server everywhere has this CGI program installed, and so in a default
config, it's just made inaccessible so as to not give crackers any more
information than necessary. So, just try making sure that the file is

Rich Bowen
Apache - mod_perl - Perl - CGI

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message