# Trellis with Nginx Virtual Hosts on a single Digital Ocean Droplet

**URL:** https://discourse.roots.io/t/trellis-with-nginx-virtual-hosts-on-a-single-digital-ocean-droplet/8357
**Category:** trellis
**Created:** 2016-12-19T11:40:45Z
**Posts:** 6

## Post 1 by @gjakic — 2016-12-19T11:40:45Z

Hi,

I’m completely new to Trellis, Sage & Bedrock, but after watching @jlengstorf’s great tutorial on Yotube (for those that haven’t seen it: [https://youtu.be/Ls30HGKru8A](https://youtu.be/Ls30HGKru8A)), I believe this is the fastest WP deployment I’ve seen in my life. So many thanks, @jlengstorf!

Still, I have a question. I have multiple websites pointing to the same Digital Ocean droplet & I’ve configured virtual hosts on Nginx, so that their root directories are pointing to /var/www//html. Is there a configuration file I have to change in order to have deploying work in this case or does Trellis/Nginx just figure it out of the box?

Many thanks for your responses.

---

## Post 2 by @ben — 2016-12-19T16:13:17Z

Trellis provisions a server for you, so you’re not going to be running/using Trellis on an existing server with vhosts.

You’ll use Trellis to setup the server entirely, including all virtual hosts.

---

## Post 3 by @gjakic — 2016-12-19T21:53:35Z

Thanks for your response. I have gained some more understanding into the stack. If I can bug you with a few more questions:

1. Is an existing server with virtual hosts then a use case where you’d use Bedrock without Trellis or no?

2. What would be the best way to pick up Roots best practices, any particular part of the documentation/book you can recommend?

I’m just wondering if having all my personal & client websites in one central repository (therefore on a single droplet) is the best idea or just a newbie mistake before I adapt to the new way of thinking. Or is there a way to then push to different production servers?

Thanks,  
g

---

## Post 4 by @andrew40 — 2017-01-12T20:56:50Z

I would be interested in the correct config to setup say a staging server that had multiple hosts on it. that way i would only need one droplet for staging all my projects but the would be deployed to different production servers?

---

## Post 5 by @ben — 2017-01-12T21:05:43Z

> [@andrew40](#):
>
> that way i would only need one droplet for staging all my projects but the would be deployed to different production servers?

You shouldn’t do this.

> [@andrew40](#):
>
> I would be interested in the correct config to setup say a staging server that had multiple hosts on it.

You can define multiple WordPress sites if you want multiple projects on one server.

> **[WordPress Sites | Trellis Docs](https://roots.io/trellis/docs/wordpress-sites/)**
>
> Everything in Trellis is built around the concept of "sites". Trellis will automatically configure everything needed to host a WordPress site.

---

## Post 6 by @andrew40 — 2017-01-17T16:02:40Z

> [@ben](#):
>
> You shouldn’t do this.

why? Is there any reason why [roots.io](http://roots.io) wouldn’t support this kind of setup?

> [@ben](#):
>
> You can define multiple WordPress sites if you want multiple projects on one server.

I would have a canonical host of [aaaa.com](http://aaaa.com) and redirects for [xxx.aaaa.com](http://xxx.aaaa.com), [yyyy.aaaa.com](http://yyyy.aaaa.com) etc
