Question

How to modify vhosts in ServerPilot for multiple domains?

Hi Guys,

I’ve been using ServerPilot for the past day or so alongside my DigitalOcean droplet. It was all working fine until I added multiple “apps” to ServerPilot; I have pointed the A Records of the domain to my droplet IP, referenced the A Records in my DigitalOcean Dashboard under “DNS”, but to no avail. I then went and checked my droplets hostname and it loaded a different app for a completley different domain (one of the domains I added).

I spoke with support, and they said that the A Records have been setup correctly, I would just have to modify the vhosts file within ServerPilot to make the right “Apps” load on the right Domain.

I love the service I get from DigitalOcean & ServerPilot. They’ve worked together like a dream since I started using them; I just need to overcome this issue and then everything will be running 100%.

Kind Regards, Louis Lobban

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This comment has been deleted

Hi Louis,

In order for your server to know which app should be used to serve a particular request, you need to set the app’s domain names in ServerPilot. When you do that, ServerPilot will take care of the necessary nginx and apache reconfigurations.

If you aren’t able to get this working, just send an email to support@serverpilot.io.

Thanks, Justin