got this issue...
Apache2 virtual host cgi 403 Forbidden /
domain.com,
www.domain.com, and mail.domain.com all work with dns.
I added a virtual host listing in Vhost file:
mail.domain.com should go to:
http://domain.com/cgi-bin/openwebmail/openwebmail.pl
==
ERROR:
Forbidden
You don't have permission to access / on this server.
--------------------------------------------------------------------------------
Apache-AdvancedExtranetServer/2.0.47 (Mandrake Linux/6mdk) Server at mail.xdomainx.com Port 80
==
Prolly cos of the Userdir directives but not sure how to modify it, or should I try the Docroot as starting from /cgi-bin/openwebmail/openwebmail.pl ??
It is currently set as /var/www/cgi-bin... ...et cetera
[edit]
exact entry in vhost.conf:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName
www.domain.com
ServerAlias domain.com
DocumentRoot /var/www/html/
</VirtualHost>
<VirtualHost *:80>
ServerName mail.domain.com
DocumentRoot /cgi-bin/openwebmail/openwebmail.pl
</VirtualHost>
======
tried these;
DocumentRoot /cgi-bin/openwebmail/openwebmail.pl
DocumentRoot /var/www/cgi-bin/openwebmail/openwebmail.pl
DocumentRoot /cgi-bin/openwebmail/
error: 403 Forbidden.
do I need to change anything to /etc/hosts:
127.0.0.1 localhost
192.168.0.75 mail.domain.com mail
==
NS:
http://domain.com/cgi-bin/openwebmail/openwebmail.pl works fine by iitself.