Report this

What is the reason for this report?

How to modify vhosts in ServerPilot for multiple domains?

Posted on August 28, 2014

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



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.

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

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.