On Sun, 2003-10-26 at 19:12, Wade Preston Shearer wrote: > 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>
This was what I needed. Thanks!!! > > > 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> I was hoping it wasn't this, since I've got a dynamic IP and I'm using dyndns.org I didn't think specifying the IP in my apache config would make a lot of sense. It would be a pain to have to change my apache config whenever my IP changed. Bryan ____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
