Hi,
I managed to install Frappe/ERPNext a clean server on CentOS 8.
Add custom domain (www.mysite.com) to the site (mysite.com).
Activate dns_multitenant. Create and set LetsEncrypt wildcard.
In the nginx.conf the sites are listed like this:
# setup maps
map $host $site_name_osfsazk {
www.mysite.com mysite.com;
default $host;
}
# server blocks
server {
listen 443 ssl;
server_name
www.mysite.com
othersite.mysite.com
;
root /home/theuser/frappe-bench/sites;
The redirect also lists the same sites.
And there is another #server in nginx.conf:
# server {
listen 443 ssl;
server_name
mysite.com
;
root /home/theuser/frappe-bench/sites;
But the only sites (domain) I can open on browser is mysite.com.
I can’t open the www.mysite.com or othersite.mysite.com.
It seems like the dns_multitenant doesn’t work or the nginx doesn’t serve multi sites.
I need suggestion on how to resolve this.
Thank you.