Replies: 1 comment
-
Modify File. /etc/nginx/nginx.confg |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is more of a feature request (or in case it is possible, a how-to request - I tried to connect in the google group, but seems it is not active anymore).
This article describes exactly what I want to do:
https://www.nginx.com/blog/running-non-ssl-protocols-over-ssl-port-nginx-1-15-2/
Basically, for one of my domain names (vhost), I would like port 443 to be accepted and redirect connections to my SSH server, rather than a http/https service.
The code to do it is in the article and pasted below (checks if the 443 packets are destined for https or SSH and redirects accordingly, but I am unsure where to insert this or how to use it with nginx-proxy). Could someone please give me a hint, what I would need to do to get this working for just one domain name?
Any advice or help would be really appreciated.
Beta Was this translation helpful? Give feedback.
All reactions