Multi tenancy for two separate sites does not work - end up with the same contents

I have set up two sites by below command w/ two different databases. I can actually see that two sites have different apps list and database contents are different.

  • bench new-site site1.name --db-name=data1
  • bench new-site site2.name --db-name=data2

I also did follow the document settings for DNS based settings. ( Setup Multitenancy (frappeframework.com))
I ended up with the same page, so I changed to port based multi tenancy, but the result is the same.

I cannot see the 2nd site on screen, although I can add and remove apps in command lines. bench apps list and database contents are different for two sites.

This is probably related to domain mapping not working properly at Docker’s Nginx level.

In the proxy server’s Nginx block, I have separate server blocks for two websites, although the backend server’s IP and ports are the same, as I run a single container for two tenancy.

Earlier, I did so with the same database, but I realized that it is better to run with isolated databases for each. So, there wasn’t any error in here.

I was an idiot. I forgot to comment out below line.