How to modify vhosts in ServerPilot for multiple domains?

  • Posted 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


Hi Louis,

Do we have to use DO name servers for this? Can’t we use others name servers as long as it’s pointing to the correct IP?

Please advise.



@mask1014 are you using DigitalOcean name servers? ServerPilot auto configs the vhosts file so don’t change that.


Now i have the same problem. i created a "test"app with, now i change the domain name in serverpilot with & instead for that “test” app, i also set up correct DNS and A record in DO, but shows another apps on Serverpilot.

would you tell me in more detail about how to configure it out? do i need to touch the vhost files in serverpilot? Thank you.

Hi Kyle,

I found out that ServerPilot configures vhosts automatically when you create an app. What I was doing wrong was not utilizing the DigitalOcean nameservers. Once I configured them everything worked accordingly!

I hope this helps!

Kind Regards, Louis


Did you manage to figure this out, i’m having exactly the same problem.

Thanks, Kyle

Submit an 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

Thanks, Justin