Can I run both DNS-based and Port-based (normal) multi-tenancy together in Frappe on Ubuntu server?

Hello

I’m running Frappe/ERPNext on an Ubuntu server and I want to use both DNS-based and Port-based (normal) multi-tenancy in the same setup.

For example:

  • DNS-based site: https://site1.mydomain.com
  • Port-based site: http://localhost:8002

Is there any way for run both types of sites simultaneously under the same frappe-bench.

No you can do this 2 sepret bench one DNS Based other For Port Based

As per ChatGPT it seems you can with a complex nginx configuration
by the way from what i know both are DNS (localhost maps to 127.0.0.1) and Port (https: uses port 443 by default)

best of luck