How to modify vhosts in ServerPilot for multiple domains?

August 28, 2014 3.1k views

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,

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


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

  • @solidcube

    Now i have the same problem. i created a "test"app with testdomain.com, now i change the domain name in serverpilot with a.com & www.a.com instead for that "test" app, i also set up correct DNS and A record in DO, but a.com 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.

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

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



2 Answers

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.


Have another answer? Share your knowledge.