httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Jones <nickj6...@yahoo.com>
Subject Re: [users@httpd] No Luck wuth VirtualHosts
Date Thu, 06 Oct 2005 23:19:05 GMT


--- kloomis <kloomis@it-resources.com> wrote:

> At 03:33 PM 10/6/2005 -0700, you wrote:
> >kloomis wrote:
> >>I'm having no luck with virtual hosts.
> >>My hosts file reads: 127.0.0.1 myDomain.com
> localhost.localdomain 
> >>localhost asus
> >>(do I need a test.myDomain.com in here?)
> >
> >Yes I believe you do.  Though it maybe should go
> through a DNS server, but 
> >this isn't a live domain.  So that will work.
> 
> Both myDomain.com and test.myDomain.com point to the
> IP address of my cable 
> modem. (They have real names I'm not showing here.)
> 
> >Are you restarting the server after every change?
> 
> Yes.
> 
> Ken

Ken,

Try adding a "ServerAlias" directive to each of your
vhost containers. So add:

ServerAlias MyDomain.com (to the MyDomain vhost)
ServerAlias test.MyDomain.com (to the test vhost)

Then restart apache and see if that helps.

Thanks
-Nick


		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message