I have nginx server acting as a reverse proxy. I want to listen on both ports 80 (http) and 443 (https). I expect the request paths for http and https to be distinct because they serve different information to the clients. /api/plain_http/xxxx
and /api/ssl_http/yyyy
The former (http) will not serve anything sensitive, hence okay to be on http. The latter may include something sensitive, therefore we want to enforce TLS and authz
/authn
.
I am sure NGINX reverse proxy can do this, but I wanted to double confirm what the config file will look like to support this.