WordPress Multisite in AMIMOTO

The Nginx settings of Amimoto is configured for single site of WordPress.
When you use it for multiple sites, you need to modify the settings files of Nginx.

Modify the Nginx’s config file which is automatically generated by Amimoto.
The file is
/etc/nginx/conf.d/default.backend.conf
or
/etc/nginx/conf.d/example.com.backend.conf ( example.com means virtual domain name )

server {
    listen unix:/var/run/nginx-backend.sock default;
    server_name _;
    root /var/www/vhosts/$host;
    index index.php index.html index.htm;
 
    access_log /var/log/nginx/$host.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;
}

Add # at the line head of line 15, include /etc/nginx/wp-singlesite;
and delete # at the line 16, #include /etc/nginx/wp-multisite-subdir;
Then restart Nginx to refresh the settings.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk