View Single Post
  #7   Spotlight this post!  
Unread 21-08-2004, 20:37
Matthew_H's Avatar
Matthew_H Matthew_H is offline
Ubergeek
#1028 (Ubergeeks)
Team Role: Mentor
 
Join Date: Feb 2003
Rookie Year: 2001
Location: Huntsville,AL
Posts: 105
Matthew_H will become famous soon enough
Send a message via AIM to Matthew_H Send a message via MSN to Matthew_H
Re: Dual sites on home server running apache?

Quote:
Originally Posted by evulish
I have mine set up as follows:

Code:
NameVirtualHost *

<VirtualHost *>
ServerName www.mehh.net
DocumentRoot /web
</VirtualHost *>

<VirtualHost *>
ServerName amy.mehh.net
DocumentRoot /home/amy/public_html
</VirtualHost>
Which works just fine for me.

It is important to use the * instead of 0.0.0.0. This allows apache to use the name instead of the IP address and since you don't have the ip address of 0.0.0.0 then that is why it is giving you some grief. You can PM if you have any problems. I had to fight with my apache directives a little until it worked just right.

Also in the ServerAlias section only have the *.hollandalternativehsfirstrobotics.us
__________________
Matthew