Quote:
Originally Posted by edenCC
You probably need to check these settings:
a, Are the two sites enabled?
(create soft links from site-available* to site-enable*)
|
a2ensite have done on both.
Quote:
Originally Posted by edenCC
b, How about the settings in the two virtualhost config files?
|
I could not understand this.
Quote:
Originally Posted by edenCC
Is there any default virtualhost created, are they messing up each other?
c, when myserver.com disabled, how does site1 act?
|
The site1 acts same as myserver.That means it is not at all reading the configuration created in site1.myserver.com
I removed the entries for site1.myserver.com and
www.myserver.com from /etc/hosts
Now I restarted apache2 and I get following
Code:
/etc/init.d/apache2 restart
Restarting web server: apache2[Thu Apr 22 11:37:25 2010] [warn] NameVirtualHost myserver.com:80 has no VirtualHosts
... waiting [Thu Apr 22 11:37:26 2010] [warn] NameVirtualHost myserver.com:80 has no VirtualHosts
But it redirected to site1.myserver.com
and I can see myserver.com also.
How did that happened ? I am unable to understand.
If I am doing a ping to site1.myserver.com and myserver.com I am getting both reply from same IP.That is one more thing I observed.