Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ianleeclark
· 9y ago · 0 comments
If I remember right, nginx doesn't support ssh + http(s) on the same port. I'd be happy to learn this isn't correct, though because my personal server only is allowing http through.
Comments
[–]
thresh
9y ago
You can actually distinguish between those on a single port using
http://nginx.org/r/ssl_preread
and some sslh-like checks using e.g. njs.
[–]
tomc1985
9y ago
Generally speaking, you cannot bind more than one service to a port on a given interface
[–]
ianleeclark
OP
9y ago
Yeah, that's the issue i had ran into. I was `listen`ing on 80, but wanted to multiplex ssh+http on the same port and nginx didn't support it.