On Oct 26, 2003, at 5:51 PM, Bryan Murdock wrote:


I'm trying to set up apache with two virtual hosts, so I can host a
little family web site as well as a little troop website for the
scouts. I've got to dyndns.org hostnames and I think I'm pretty close.
The main one works (the family site), but when I type in the name of the
second I get this in the browser:


Forbidden
You don't have permission to access / on this server.

The permissions on the DocumentRoot directory allow global reading of
files there.  I just created a directory called /var/www/troop439 and
specified that for DocumentRoot for the troop439 VirtualHost.

Here are the lines from my apache configuration:

################# Named VirtualHosts
NameVirtualHost *

not sure exactly what is wrong, but...


1. do you have a <directory> set?

                example...
                
                <Directory "/var/www/troop439">
                Options ...
                </Directory>


2. and you need the address in the host tag


example...

                <VirtualHost 12.231.208.179>
                DocumentRoot /var/www/troop439
                ServerName troop439.homelinux.org
                ServerAdmin [EMAIL PROTECTED]
                ServerAlias www.troop439.homelinux.org
                </VirtualHost>


<VirtualHost *> ServerName murdockfamily.homelinux.org ServerAlias *.murdockfamily.homelinux.org #ServerPath /domain DocumentRoot /var/www/html </VirtualHost>

<VirtualHost *>
ServerName troop439.homelinux.org
ServerAlias *.troop439.homelinux.org
#ServerPath /domain
DocumentRoot /var/www/troop439
</VirtualHost>

Don't laugh if I did anything really dumb :)

Bryan


____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list




____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to