Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
lxe
· 6y ago · 0 comments
Can I reverse-proxy ports to paths?
Comments
[–]
agrinman
6y ago
Not sure I understand what you mean, mind giving me an example?
[–]
lxe
OP
6y ago
A common usecase: I have http(s) running on 8080 and a websocket on 8081. I would make an nginx rule to proxy_pass / to 8080 and /ws to 8081.
[–]
agrinman
6y ago
Got it. Currently this use case is not supported on the same subdomain, but you could definitely open up two different tunnels (on different subdomains) to do this. Definitely not ideal, so we'll look into adding support for this.