Domain with www pointing yo another site
Posted
by
ntechi
on Server Fault
See other posts from Server Fault
or by ntechi
Published on 2011-02-18T06:16:08Z
Indexed on
2011/02/18
7:27 UTC
Read the original article
Hit count: 552
domain
|multiple-sites
Recently I started Multi Sites on my VPS which is having Centos 64 bit. Currently I am having two sites live and each is working fine,
Now the problem is in the URL I have the following sites:
http://mbas.co.in
http://u-k.in
mbas was the very first site on my VPS
Now in URL if I type http://mbas.co.in
or http://www.mbas.co.in
both redirect to my mbas website
But for the second website,
If in URL I type http://u-k.in
then it redirects to the u-k website correctly but if I type http://www.u-k.in
then it redirects me to mbas website.
You can try that
I have configured my DNS in this way, see the image http://i55.tinypic.com/14vlpxl.jpg
And my Multi Site code is this
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/www.mbas.co.in
ServerName mbas.co.in
ErrorLog logs/mbas.co.in-error_log
CustomLog logs/mbas.co.in-access_log common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/u-k.in
ServerName u-k.in
ErrorLog logs/u-k-error_log
CustomLog logs/u-k-access_log common
</VirtualHost>
© Server Fault or respective owner