Nginx: proxy forwarding other ports than 80 (e.g. 22)
Need some help:
Is it possible to use nginx as proxy forwarding for NAT vps, to other ports than 80? For example, is it possible to configure in sites-enabled, a route that listens to port 22 for specific domain (e.g. example.com) and forwards it to an internal ip (e.g. 192.168.1.50)?
How can this be done without conflicting with ssh listening server on the main node? (getting error
nginx: [emerg] bind() to 0.0.0.0:22 failed (98: Address already in use) )
Or mail ports to be used as a normal mail server to a NAT vps.
I am here occasionally nowadays, because I really prefer https://talk.lowendspirit.com . You should try it, it is fat-free, delicious with fresh ingredients combined with the deep knowledge of the old chefs!