Virtual Hosts for multiple domains on servrer

Posted February 19, 2013 7.4k views
hello, I'm starting to use your services in production. I have two domains that are configured to point to two separate folders on the server (as a guide "guide the use of server"), but if I go through HTTP seems that both lead to the same folder (including access FTP). How can I fix this problem?

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
2 answers
the guide I used to configure the server is:
by Etel Sverdlov
This tutorial shows you how to set up a new directory, how to grant the correct permissions, how to add content to a new page, how to turn on virtual hosting, and how to, if needed, set up local hosts. Virtual Hosts are used to run more than one domain off of a single IP address and allows you to run multiple sites off of a single DigitalOcean droplet. This tutorial describes how to set up virtual hosts with Apache.
Even thought I am a CentOS guy :) and ubuntu is not my area, usually if you followed the guide the most possible errors are:

1)some TYPO (misspell)
2)not restarted web-server (httpd)

..and since this is also the case for FTP, first make a VPS restart in order to know for sure that all services you modified are running with the latest options (your edits).

Then go service-by-service for typo.

I hope I could help more, extra info needed for that.