Question
Can I have multiple domains with a Droplet?
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.
×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.
×1) I want to migrate a few domains to my droplet. Will adding a domain automatically create subdirectories for each site?No, you will have to create them automatically.
2) I installed a droplet with the wordpress option. Now I'm thinking this is a bad idea since I'm moving 3 wordpress sites to this droplet. Was that a wrong move?It certainly wasn't wrong however it would be easier if you were to follow the following article on a fresh droplet.
I too, would like to know how to do this without having the need for additional IP addresses. I know enough to be dangerous, but couldn’t figure this part out (at least by doing any web searches). Is there a good resource for this anywhere that I can glance at? Much appreciated in advance!
i have same question. as i create Lamp server droplet. now i need to point 2 domain with different directory name e.g
var/www/html/mydomain1/
var/www/html/mydomain2/
how could i do that ??
please help me in this.
It has been several months since I last posted my question, so I hope that I’m getting back in time. My apologies in advance if not. After some further research on how to use Apache and/or NGINX which both can be used to serve your site, it’s actually quite simple to serve multiple domains on one droplet using a combination of DNS settings through DigitalOcean or an external service which points to the IP, and then manipulating the information in configuration files for either Apache or NGINX. There are many articles out there to get you started.
You basically want to use the default config file in the sites-available directory to create your own config file, then point to the directory where your index.html / index.php files live for the site you wish to serve. It’s pretty simple once you’ve done it. If you need any examples, reply back.