The virtualhost problem on apache

November 21, 2014 1.5k views

I have 2 account on my digitalocean server and I use apache2 2.2 version to write a webpage . I got and I set up wordpress on it and then I get second domain which is When I write both of them on browser. It goes the same site ( you can check). Yet I want create a calculator game on
Where am I wrong . What did I do wrong?

1 Answer

Seems You have the same Document Root in the Virtual host entries for both the domains in the apache conf file.

You can get that from the below command
cat /etc/httpd/conf/httpd.conf | grep -ab2

Also, check any redirections are there .htaccess rules under the domain public_html directory

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!