Re: Virtual hosting problem

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

 



$quoted_author = "Sean H." ;
> 
> <VirtualHost 63.134.253.113:80>

Presume you have the correct NameVirturalHost definition


>     ServerName primary.com
>     ServerAlias primary.com www.primary.com
>     ServerAlias primary.com www.secondaryA.net
>     ServerAlias primary.com secondaryB.tv
>     ServerAlias primary.com www.secondaryB.tv
>     ServerAlias primary.com secondaryC.net
>     ServerAlias primary.com www.secondaryC.net
>     ServerAlias primary.com secondaryC.com
>     ServerAlias primary.com www.secondaryC.com

Wait... what?

Why are you repeating primary.com?

Re-read the example at
http://httpd.apache.org/docs/2.2/mod/core.html#serveralias


> The primary domain works fine, including all the server aliases.
> What doesn't work is dev.primary.com. It isn't accessing the
> directory primary_dev. It's access the directory primary. I can't
> even begin to guess why. A very similar set up was working just fine
> when one of the secondary domains was the primary domain. Then my
> client acquired what is now the primary domain and this is what I
> set up. I wish I had the old config to look at.

Where is the log entry ending up?


> What is even more bizarre is if I go to the old dev site
> (dev.secondaryA.net) then I get the site as it exists in the
> primary_dev directory. That sub-domain should not even exist. I
> removed all references to that domain in Apache's config and the DNS
> files last night. I wouldn't expect that machine to be answering to
> that domain name now. (I know just enough about setting up DNS to be
> very dangerous.)  Can someone offer some advice as to why this is
> not working?

The sub-domain exists somewhere. Wildcard? Hosts file?

What order are the VirtualHost containers in?

cheers
Marty

---------------------------------------------------------------------
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