Enabling WordPress Multisite

AMIMOTO-AMI comes ready with Multisite config settings. However, these settings are disabled by default.

Step 1: Log in as root user

$ sudo su - 

 

Step 2: Edit NGINX Config

This file will either be the default file or a custom one you've created.

/etc/nginx/conf.d/default.backend.conf

or

/etc/nginx/conf.d/example.com.backend.conf

Next, locate the line for wp-single-site and comment that out and uncomment the line wp-multisite-subdir.

server {
    listen unix:/var/run/nginx-backend.sock default;
    server_name example.com;
    root /var/www/vhosts/example.com;
    index index.php index.html index.htm;
 
    access_log /var/log/nginx/example.com.backend.access.log backend;
 
    keepalive_timeout 25;
    port_in_redirect off;
 
    gzip off;
    gzip_vary off;
 
    #include /etc/nginx/wp-singlesite;
    include /etc/nginx/wp-multisite-subdir;
}

Step 3: Restart NGINX

For these change to take effect, restart NGINX.