UPDATE: I have abandoned this in favour of subdomains for now, as those are supported by default.
It looks like my question has been asked a few times on the discourse, namely in this thread but without a conclusive answer -
To clarify - I am aiming to set up a site on the main domain, eg. site.com, then several sites as sub directories eg, site.com/site1, site.com/site2 etc.
As far as the Trellis configuration I believe I have correctly set up the multiple sites (provisioned vagrant with no errors and also wp_home and wp_siteurl set up correctly in wordpress_sites.yml) - However unsurprisingly when visiting site.com/site2 it just loads the 404 of the main site.
I am guessing I have to configure nginx to send site.com/site2 to /srv/www/site2/current
So my main questions are
- If and how to set this up in nginx-includes
- Which conf do I set it up in? I am guessing it is on the main domain ie, /trellis/site.com/*.conf.j2 (rather than in trellis/nginx-includes/site2/)
Or am I barking up the wrong tree completely? Thanks and appreciate the help