I very new to reverse proxies and nginx. Can you tell me if it's possible to do this.
I want to open 443 port and forward it to a linux box in my DMZ which will be running nginx. I started to read about the stream module for non-http connections.
I wanted to have this :
* [vpn.example.com](https://vpn.example.com) : redirect to my Cisco ASA Anyconnect VPN
* [remote.example.com](https://remote.example.com) : redirect to an ssh server
* [www.example.com](https://www.example.com) : I don't have any web server right now but maybe in the future
From my understanding, it would be possible if it was just web servers because you have the FQDN in the headers but I will not be able to do this with stream module because there is no way to differentiate the connections.
In that case, I have to use different ports.
Am I right ?