Click to See Complete Forum and Search --> : Name Virtual Hosts problem


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.

nickj6282
07-29-2005, 06:27 PM
Is 'index.html' set up as your default document? If not add:

DirectoryIndex index.html

between your VirtualHost tags.

HTH
-Nick

Odins_Son
07-29-2005, 06:33 PM
I tried

NameVirtualHost 142.59.92.199:80

<VirtualHost 142.59.92.199:80>
ServerName www.pissed.ca
DocumentRoot /var/www/html/pissed
<Directory "/var/www/html/pissed">
Options Indexes
</Directory>
</VirtualHost>

<VirtualHost 142.59.92.199:80>
ServerName www.brookshatchat.com
DocumentRoot /var/www/html/brooks
<Directory "/var/www/html/brooks">
Options Indexes
</Directory>
</VirtualHost>


Still no dice

Odins_Son
07-29-2005, 06:35 PM
Nick... that worked


Thanks.