httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] cgi-bin in VirtualHost
Date Mon, 07 May 2007 17:24:34 GMT
On 5/7/07, Joe Demeny <jd_boro@borozo.com> wrote:
>
> Hello,
>
> I don't seem to be able to make CGI work within <VirtualHost>.
>
> Here is my VirtualHost block:
>
> <VirtualHost *:80>
> <Directory "/home/shop1/cgi-bin/">
>     Options ExecCGI
>     SetHandler cgi-script
> </Directory>

Everything inside the <Directory> section is redundant because it is
implied by the ScriptAlias:

>         ScriptAlias /cgi-bin/ /home/shop1/cgi-bin/

> The test-cgi script works fine from the command line. However, I get a
> "Forbidden" message, and the log file entry is "client denied by
> server configuration: /home/shop1/cgi-bin/test-cgi"

Try adding
Order allow,deny
Allow from all
to the <Directory> section above.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message