Port based multitenancy issue

I’m using port based multitenancy.
I’ve set one site yy.yyy.com assigned port: 80
I’ve set another site xx.xxx.com assigned port: 8088

I’ve enter same IP in both site A record.

when I ran site yy.yyy.com on the browser, it returns default following nginx page not erp site:

what I am doing wrong?

Please guide me.
Thank you…

Note: When you restart nginx after the configuration change, it might fail if you have another configuration with server block as default for port 80 (in most cases for the nginx welcome page). You will have to disable this config. Most probable places for it to exist are /etc/nginx/conf.d/default.conf and /etc/nginx/conf.d/default . In the latest nginx installs, the file is in /etc/nginx/sites-available/default

Check docs for reference: Setup Production

Check the frappe-bench/config/nginx.conf for port of site yy.yyy.com it might be something other than 80 because 80 is successfully served by nginx default and nginx didn’t fail to start.

I think this file have right configuration detail.

You will have to disable this config.

how can I do that?
Please let me.

and also when I’m creating symlink
sudo ln -s pwd/config/nginx.conf /etc/nginx/conf.d/frappe-bench.conf

and restating nginx, it is failed.

Maybe the error is related to log format.
Check nginx logs and this thread

Hope this helps.

I’m using this solution but it doesn’t work for me.
Symlink is creating but when restart nginx it gives error.

frappe.conf file showing in red color in /etc/nginx/sites-enabled/.

What nginx logs shows? If you get error starting nginx service, logs should show some kind of error.