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
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
To enable DNS Multitenancy you need to rename site.local with your domain_name
mv site.local Your_Domain_nameIt 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
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.
How do you remove/ empty currentsite.txt??
ReplyDelete