Apache VirtualHosts Problem

Hello, and thanks in advance for your help.

I have recently taken control over a Mac Mini running OS X 10.4.4. It has Apache 1.3.33, I beleive. I have turned on apache, and it is working.

I have several domains I want to control from this server.

The first was tabletopentertainment.com.

I went to RegisterFly, and set my ADDRESS, or A-NAME for both @ and www to the IP address of this server.

I then went into my httpd.conf file and un-commented the line
NameVirtualHost *:80

Then I set up the following:

<VirtualHost *:80>
ServerAdmin blah
DocumentRoot /blah/blah/blah
ServerName www.tabletopentertainment.com
</VirtualHost>

Great. I restarted apache w/ sudo, and loaded up the site, and it was running correctly (after I corrected some permissions in /blah/blah/blah -- that's another issue about default permissions that I'll keep googling)...

So I went back into RegisterFly and started the second domain, fairfaxhighcd.com. I set the ADDRESS or A-NAME just the same.

Then i went into httpd.conf, and added another Virtual Host thing:

<VirtualHost *:80>
ServerAdmin blah
DocumentRoot /blah/blah/blah2
ServerName www.fairfaxhighcd.com
</VirtualHost>

Now when I go to fairfaxhighcd.com, rather than getting what's in the blah2 directory, the URL redirects to:

http://206.27.17.58

and I get the same site as is on the first virtual host.

Any thoughts on what I'm missing here? I'm new at this, but trying to teach myself, and I've just hit a tough spot.

Your help is appreciated.

 

 

 

 

Top