Odins_Son
07-29-2005, 06:13 PM
Here is how I have my virtual hosts set up.
NameVirtualHost 142.59.92.199:80
<VirtualHost 142.59.92.199:80>
ServerName www.pissed.ca
DocumentRoot /var/www/html/pissed
</VirtualHost>
<VirtualHost 142.59.92.199:80>
ServerName www.brookshatchat.com
DocumentRoot /var/www/html/brooks
Options +Indexes
</VirtualHost>
It works fine when I goto the www.pissed.ca address, when I goto the www.brookshatchat.com it doesn't work and I get this message in my error_log file.
' Directory index forbidden by rule: '
However if I goto www.brookshatchat.com/index.html then the page loads and everything works just fine. I've googled this and read a lot of other posts about this on other forums but I don't come up with a clear solution that worked. From what I understand I need to set the virtual host to load the index's by default or by setting some option to +. Any help or suggestions on this would be greatly appreciated.
NameVirtualHost 142.59.92.199:80
<VirtualHost 142.59.92.199:80>
ServerName www.pissed.ca
DocumentRoot /var/www/html/pissed
</VirtualHost>
<VirtualHost 142.59.92.199:80>
ServerName www.brookshatchat.com
DocumentRoot /var/www/html/brooks
Options +Indexes
</VirtualHost>
It works fine when I goto the www.pissed.ca address, when I goto the www.brookshatchat.com it doesn't work and I get this message in my error_log file.
' Directory index forbidden by rule: '
However if I goto www.brookshatchat.com/index.html then the page loads and everything works just fine. I've googled this and read a lot of other posts about this on other forums but I don't come up with a clear solution that worked. From what I understand I need to set the virtual host to load the index's by default or by setting some option to +. Any help or suggestions on this would be greatly appreciated.