# Trellis setup for multiple Bedrock instances in subfolders

**URL:** https://discourse.roots.io/t/trellis-setup-for-multiple-bedrock-instances-in-subfolders/5194
**Category:** trellis
**Created:** 2015-11-04T21:50:13Z
**Posts:** 7

## Post 1 by @timothy_m_alber — 2015-11-04T21:50:14Z

I am trying to configure my trellis setup to have multiple instances of Bedrock as subfolders to create something like this:

[example.com/site1](http://example.com/site1)  
[example.com/site2](http://example.com/site2)  
[example.com/site3](http://example.com/site3)  
[example.com/site3/another](http://example.com/site3/another)

---

## Post 2 by @kalenjohnson — 2015-11-04T22:27:52Z

What’s your question?

---

## Post 3 by @timothy_m_alber — 2015-11-05T02:28:08Z

Sorry, I am just not sure how to configure Trellis group\_vars in order to accomplish this.

---

## Post 4 by @kalenjohnson — 2015-11-05T04:41:07Z

> [@timothy_m_alber](#):
>
> [example.com/site3/another](http://example.com/site3/another)

You want there to be a WP installation at `example.com/site3` AND `example.com/site3/another` ?

---

## Post 5 by @fullyint — 2015-11-05T05:21:00Z

@timothy_m_alber I think there are a number of discourse threads you could search and find on the topic. One that comes to mind that might be relevant is [How to create subdomain on digital ocean correctly?](https://discourse.roots.io/t/how-to-create-subdomain-on-digital-ocean-correctly/4695/5)  
That demonstrates having multiple sites within `wordpress_sites`, each with their respective variables. Let us know if you also need different vars files per site, which would be unusual.

**Edit.** I may have misunderstood. I was thinking the paths you listed were referring to **filepaths** of your trellis project structure, like how you might alter the Trellis project structure mentioned in the [Trellis installation docs](https://roots.io/trellis/docs/installing-trellis/) to accommodate multiple WordPress sites all hosted on a single server as separate WP installs. But maybe the paths you mentioned were actually referring to **URLs** for a WP multisite setup using subdirectories (?).

---

## Post 6 by @timothy_m_alber — 2015-11-05T14:54:16Z

thanks @fullyint. Yeah, I am trying to set up separate instances of WP (using bedrock) on subfolders on a single domain. And, yeah @kalenjohnson there are certain instances where we might need another instance within a sub-folder. I realize that might not be a great practice, but it is a request from a client. Just wondering if this can be accomplished using the Roots setup. Thanks!

---

## Post 7 by @kalenjohnson — 2015-11-05T19:05:54Z

> [@timothy_m_alber](#):
>
> I realize that might not be a great practice, but it is a request from a client. Just wondering if this can be accomplished using the Roots setup. Thanks!

I’ve never tried it. But since Trellis deploys via folders, I would assume that deploying `site3` will also deploy `site3/another` along with it. This seems like a pretty strange use case, I doubt it’s one that would have been conceived. Not just because of how Trellis is set up, but I don’t think it’s suggestable to have a WP installation within a WP installation, either.

I’d step back and see if there is a better solution you could come up with. Off the top of my head, why couldn’t you just have another folder `site3-another` ?
