[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

apache vhosts



Hey, I'm having a problem with vhosts in apache. The server is on a machine with a routeable IP, and also 192.168.1.1 . I have a friends domain set up on it as a vhost, and the plan is to also have my main site load at my IP ( i don't have a domain name ). My problem is that I can never get both to work at the same time. Either his page loads on his domain (works good) and his page also loads on my IP, or my page will load on my IP, and his domain will just point to my main page. Does anyone have a solution? Here is the lines I have for apache. ( i changed up the ips just for an extra sense of privacy:P)


NameVirtualHost 192.168.1.1 NameVirtualHost 130.184.1.5


<VirtualHost _default_:*> ServerName 130.184.1.5 ServerAdmin root_(_at_)_localdomain DocumentRoot /var/www/htdocs </VirtualHost>

<VirtualHost 130.184.1.5>
#<VirtualHost 192.168.1.1>
   ServerName www.domainname.com
   ServerAdmin webmaster_(_at_)_domainname_(_dot_)_com
   DocumentRoot /home/user/htdocs
</VirtualHost>


the reason i have that one line commented is that when i uncomment it and comment the one right about it, my page loads, otherwise his domain loads.


Any solutions?  Do i have to have a domain?

Thanks,
Benjamin Ellis
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at http://profiles.msn.com.





Visit your host, monkey.org