Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
How to point different domains to different folders?
I setup a domain name (bileaf.com) in the DO droplet. I then installed Vesta CP and provided the domain information whenever it asked. When I opened my domain name on the browser it showed me a panel welcome page (not the actual panel admin login but a panel html page saying powered by vesta).
Now, I added two more domains to my DO and now want to point them to different folders. I went through https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts article to setup Apache virtual hosts. But, now whenever I try to go to any of these domains on my browsers it keeps going to the panel page for my first domain.
I dug around a bit and it seems like the panel page is in /home/admin/web/panel.bileaf.com/public_html. Both of the secondly added domains are pointing to this.
Any idea what I am doing wrong and how can I fix this?