cgi-bin in VirtualHost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>
    ServerAdmin web@xxxxxxxxxxxxxx
    DocumentRoot /home/shop1/htdocs
        ScriptAlias /cgi-bin/ /home/shop1/cgi-bin/
    ServerName www.mydomain.com
    ErrorLog /home/shop1/htdocs/stats/httpd-error.log
    CustomLog /home/shop1/htdocs/stats/httpd-access.log combined
</VirtualHost>

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"

What am I missing?

I use apache-2.0.59 on FreeBSD 6.2.

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux