Virtual Hosts for multiple domains on servrer

February 19, 2013 5.3k 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?
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.

Have another answer? Share your knowledge.