Re: [users@httpd] No Luck wuth VirtualHosts

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

 




--- kloomis <kloomis@xxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux