Question

The virtualhost problem on apache

  • Posted November 21, 2014

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?

Subscribe
Share

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

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.

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