Multitenant Setup New Site

Hi all,

I followed official instruction(DNS based) to setup 1 more site on the same domain, same port. Where should I change the config file?? I added “domain site2.domain.com” under /etc/hosts. I also made changes to frappe-bench/config/nginx.conf

Afterwards, the website is up and running but is actually connected to the first erpnext(site1). I’m sure there is a separate data base for site2 but i think they are not linked together yet. How should i change up the config/nginx.conf file to get site2 up and running.

upstream frappe-bench-frappe {
server 127.0.0.1:8000 fail_timeout=0;
}

upstream frappe-bench-socketio-server {
server 127.0.0.1:9000 fail_timeout=0;
}

setup maps

server blocks

server {
listen 80;
server_name
52.163.118.245
;
root /home/MMERPOffical/frappe-bench/sites;

server {
listen 80;
server_name
test.moshimori.com
;

    root /home/MMERPOffical/frappe-bench/sites;

Thanks In Advance

Its sort of like this question but as I added FQDN in both site_config files, still not working