Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Transparent proxy to websocket server on same machine

$
0
0
Hello,

I want nginx and a websocket server on same machine. Users must be able to access both on port 80/443. I do this currently by having 2 separate IPs, but for logistical reasons I'd prefer one IP.

I know nginx can act as a proxy for a websocket server, but I also need the original IP to be carried to the websocket server, without additional headers.

I saw a small tutorial on this, so I know it's possible, but it assumed two separate servers and it involved iptables and routing. While I'm comfortable with nginx, I never had to edit iptables and routes manually and I don't want to mess them up.

What would be the simplest way to accomplish this?

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>