Two domains hosted on the same server with different root folder shows up the same homepage
- by emaillenin
I have hosted two domains from GoDaddy at Linode VPS.
They are mobiletoast.com and lesseltechnologies.com
Thought the latter site has a separate index folder, whenever I navigate to it, I get the homepage of mobiletoast.com
The strange thing is, I see the expected page (It works), when I open the site from my mobile phone. But when I open the site from my PC (any browser, without any cache, hard refresh), I get the homepage of mobiletoast.com
The Linode support team says, they see the correct "It works" page. But I am not able to see that page.
This is the output of the command apache2ctl -S
root@li339-83:~# apache2ctl -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80 is a NameVirtualHost
default server mobiletoast.com (/etc/apache2/sites-enabled/000-default:1)
port 80 namevhost mobiletoast.com (/etc/apache2/sites-enabled/000-default:1)
port 80 namevhost blog.mobiletoast.com (/etc/apache2/sites-enabled/blog.mobiletoast.com:1)
port 80 namevhost lesseltechnologies.com (/etc/apache2/sites-enabled/lesseltechnologies.com:1)
port 80 namevhost mobiletoast.com (/etc/apache2/sites-enabled/mobiletoast.com:1)
Syntax OK