Guide for configuring WordPress Multisite

Post Reply
User avatar
isscbta
Team Member
Posts: 147
Joined: Mon Jul 19, 2021 1:41 am
Has thanked: 18 times
Been thanked: 3 times

Case A: Sub-domains — a domain-based network in which on-demand sites use subdomains

In case when you are going to install WordPress Multisite, there are two options:
1. Add domains/subdomains as an alias for the main domain, or use

Code: Select all

*.domain.com
2. Add domain/subdomain as usual in myVesta, then delete public_html/ which would be automatically created for particular domain/subdomain, and in place of that deleted public_html/, place symlink of the main multisite

Code: Select all

In your SSH, as root, run:
rm -rf /home/user/web/subsite.com/public_html
ln -s /home/user/web/maindomain.com/public_html /home/user/web/subsite.com/public_html
chown -h user:user /home/user/web/subsite.com/public_html
And eventually you will have to add this in your /etc/php/x.x/fpm/pool.d/subsite.com.conf conf file under open_basedir:

Code: Select all

/home/user/web/maindomain.com/public_html:




Case B: Sub-directories — a path-based network in which on-demand sites use paths

In this case you only need to use a hosting-legacy as your Proxy Template for NGINX
nginx.png
nginx.png (34.14 KiB)

Tags:
Post Reply