The virtualhost problem on apache

Posted November 21, 2014 1.8k 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?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
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