# rename site1.local and site2.local as site1.example.com and site2.example.com
# Add DNS record for *.example.com to resolve to your server
bench config dns_multitenant on
bench setup nginx
sudo service nginx reload # or run this as root
Now Frappe will serve site as per the domain name resolved.
I tried to follow these setps, but my second site is not visible.
I have my server in Digital Ocean and have frappe 4.5
I can access my first site at http://178.62.219.188:8000/
But I cannot access my second site http://178.62.219.188:8082
after executing > frappe@ERPTesting:~/frappe-bench$ bench set-nginx-port malnadtesting.in 82
I did not do DNS configuration as I have not assigned any DNS for this, yet.
I got it working with these instructions, but I have tow subdomains and the DNS records set up as well.
su frappe
cd ~/frappe-bench
bench set-default-site <SITENAME-01>.<DOMAIN>
bench config dns_multitenant on
bench new-site <SITENAME-02>.<DOMAIN>
bench frappe --install_app erpnext <SITENAME-02>.<DOMAIN>
bench setup nginx
su root
cd ~
service nginx reload