Hi,
I have a droplet in DigitalOcean and am having issues to configure a domain a bought on it.
So, I have a LAMP on Ubuntu 12.04 installed on my droplet and have a couple of folders in there with a couple of different websites. I also bought a domain through registro.br (a brasilian domain name provider) and Im going to buy another domain on goDaddy.
I would like to point each of these domain to a subfolder in my droplet, for example: domain1.com.br -> myIPonDO/subfolder1 domain2.com -> myIPonDO/subfolder2
Ive tried a couple of things but had no success, not even to point my domain directly to my IP. :(
Any idead of how to do it?
Thanks a lot. Diego Dacal.
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.
First, you need to update your DNS records to point the domain to your droplet: <a href=“https://www.digitalocean.com/community/articles/how-to-set-up-a-host-name-with-digitalocean”>https://www.digitalocean.com/community/articles/how-to-set-up-a-host-name-with-digitalocean</a>. <br> <br>Then, you need to add a virtualhost so Apache knows what directory to serve each domain from: <a href=“https://www.digitalocean.com/community/articles/how-to-set-up-apache-virtual-hosts-on-ubuntu-12-04-lts”>https://www.digitalocean.com/community/articles/how-to-set-up-apache-virtual-hosts-on-ubuntu-12-04-lts</a>.