DNS based Multitenancy

When your ERPNext installation finished it will create a default site for e.g. site.local.
To enable DNS Multitenancy you need to rename site.local with your domain_name

mv site.local Your_Domain_name
It will rename your site to your specified domain name.

Thus, all the sites you add to the bench would run on the same port and will be automatically selected based on the hostname.

Then try this command

bench config dns_multitenant on
This command to re generate nginx config
bench setup nginx
To reload nginx try this command

sudo service nginx reload


Now you can check your specified domain it will show












To avoid this problem

try to remove the current site from currentsite.txt

For "DNS based multitenancy", currentsite.txt in frappe-bench/sites/ should be empty.

Comments

Post a Comment