Question

The virtualhost problem on apache

Posted November 21, 2014 1.6k views

I have 2 dot.tk account on my digitalocean server and I use apache2 2.2 version to write a webpage . I got gunbatan.tk and I set up wordpress on it and then I get second domain which is yegunbatan.tk. When I write both of them on browser. It goes the same site ( you can check). Yet I want create a calculator game on yegunbatan.tk
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.

×
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 yegunbatan.tk -ab2

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

Submit an Answer