Skip to content

WordPress Multisite on Nginx

jaswsinc edited this page Jun 28, 2016 · 2 revisions

By default, when you setup a Multisite Network in the WordPress Dashboard, you are given instructions that assume you're running Apache and not Nginx. Step 1 in these instructions (as seen below) you can and should do—even if you're running Nginx. Not a problem. However, Step 2 is not possible on Nginx, because .htaccess files are an Apache-only concept.

Configuring Nginx for a Multisite Network

Instead of .htaccess, log into your VM over SSH and complete the following steps.

$ cd ~/my.vm;
$ vagrant ssh;
$ sudo ln --symbolic /bootstrap/src/nginx/conf.d/server/wp-ms.conf /etc/nginx/conf.d/server/wp-ms.conf;
$ sudo service nginx restart;

That's it. You're all set now.

Clone this wiki locally