Roots Discourse

Trellis configuration for install WP on a subfolder


#1

Hi there,
I’m trying to configure a project with Trellis and Bedrock and I’ve only this stupid question:
if I would replicate this domain structure of a real production wordpress installation
https://www.mydomain.com/news/
where news is the the root bedrock wordpress installation,
how I should configure the wordpress_sites.yml file?

I’ve tried to do like this:
wordpress_sites:
mydomain.com:
site_hosts:
- canonical: www.mydomain.com/news/
redirects:
- mydomain.com

But when I’ve launched vagrant up command I’ve got this error:

❯ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:

vm:
* The hostname set for the VM should only contain letters, numbers,
hyphens or dots. It cannot start with a hyphen or dot.

In other questions someone suggested the multisite solution but I would avoid that.

Any other suggestions?
Thanks


#2

Where would the rest of mydomain.com be hosted — the non-WP part that lives in the root? Trellis doesn’t support this out of the box