Report this

What is the reason for this report?

How to host multiple domains on a LAMP server?

Posted on April 3, 2014

Hello, I’m away from my droplet more than a month. So, by comming back myself at this some old question came too.

How can I host multiple domains on a LAMP droplet? I don’t have a glue about on how to do it… Is this just about DNS zone? Which files do I need to change?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

I’ve done some changes about SSL certificates etc. I’m afraid of it getting messed because add or config other domains at the same droplet

jntslvdrt, you need to tell us which distro you are using or you may well find you are receiving advice which will not help you. theshiver has kindly given you a link for Ubuntu and that will also work for Debian. But the document root for a Red Hat derived distro such as CentOS is different. <br> <br>Also, you can probably find what you need to know by following this link: https://www.digitalocean.com/community/tags and scrolling though until you find the heading for your distro and scanning for a suitable article in that section.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.