Setting up Bedrock-Ansible multisite with subdomains using the Wiki guide

We have several Bedrock-Ansible / Bedrock sites in production, all good, no issues.

However, we seem to be hitting a wall with setting up a multisite using subdomains following the guide in the wiki -

We have not progressed beyond trying to get set up locally so our issues are related to development (local Vagrant setup) only. I’m sure we’ll have other issues when we reach staging / production but this thread is only about development / Vagrant setup.

After config (using the wiki guide) / Vagrant up, which goes smoothly, we log into WP and add a new site, again no issues. However, when hitting up the newly added subdomain we get a 342 error ‘no data received - ERR_EMPTY_RESPONSE’

Has anyone else experienced the same difficulties - is there something we are missing? We’ve followed the guide to the letter and the only ambiguity / point we can’t reconcile is from the Wiki docs:

ensure the following values are placed somewhere in wp-config.php (or config/application.php if you’re using Bedrock) before running the wordpress-sites role:

We presume this to mean ‘before running Vagrant up’ or provisioning a remote for the first time - is that correct?

Anyone have any pointers? Anyone got this setup successfully yet?

Doesn’t anyone have this setup and working? :worried:

Just for confirmation, we have followed notes in previous thread: Recommended subdomain multisite nginx vhost configuration with new web/ layout

Our nginx .conf looks like:

server {
    listen 80;

  server_name  mu-test.blah *.mu-test.blah;
  access_log   /srv/www/mu-test.blah/logs/mu-test.blah.access.log;
  error_log    /srv/www/mu-test.blah/logs/mu-test.blah.error.log;

  root  /srv/www/mu-test.blah/current/web;
  index index.php;

  charset utf-8;

  # See Virtualbox section at
  sendfile off;
       rewrite ^/(wp-.*.php)$ /wp/$1 last;
       rewrite ^/(wp-(content|admin|includes).*) /wp/$1 last;

 include wordpress.conf;

Still getting: ERR_EMPTY_RESPONSE after service nginx restart

What are we missing?

My mistake was not doing:

service nginx reload

I had been restarting nginx but it wasn’t until I did reload that it picked up the new config. Schoolboy error.

1 Like