Host other website with ERPnext error!

I had a index.html serving through nginx server block to 1.example.com successfully.
When installed ERPnext and enabled multi-tenancy based on dns at 2.example.com
ERPnext is working fine, but 1.example.com showing “Sorry! We will be back soon.”

Any hint how to solve it?

create new conf inside /etc/nginx/conf.d/
e.g

server {
	root /usr/share/nginx/www; #change this to your html location
	index index.html index.htm;

	server_name 1.example.com;

	location / {
		try_files $uri $uri/ /index.html;
	}
}

and reload nginx
sudo service nginx reload

2 Likes

Thank you @lukptr. It worked.