2024-10-11, 07:21 PM
Why external port 443 to internal port 80?
But to answer your question, subdomains is the solution. Subpaths is also a solution, but is more complicated, IMO, and harder to setup. Subdomains are pretty easy to setup, but do require you update your certificate with each new subdomain. Unless you get a wildcard cert.
I have 8 services running, all on the same https port. Nginx sees the subdomain in the request and routes traffic accordingly.
But to answer your question, subdomains is the solution. Subpaths is also a solution, but is more complicated, IMO, and harder to setup. Subdomains are pretty easy to setup, but do require you update your certificate with each new subdomain. Unless you get a wildcard cert.
I have 8 services running, all on the same https port. Nginx sees the subdomain in the request and routes traffic accordingly.