I was wondering if I could get some help. I’m trying to use Nginx as a reverse proxy for an audio streaming server called Icecast.
Just to explain my setup, I have a server with 2 IPv4 addresses and 1 IPv6. Icecast binds to both an IPv4 and v6 address on port 8000. Nginx is set to listen on port 80 of those same addresses.
The problem is that I receive a 502 bad gateway error when accessing the domain. I think the issue has something to do with the fact that Icecast doesn’t bind to all of the IP addresses that are available on the server, but that’s just a guess.
I’ve uploaded a copy of my Nginx configuration.
I was hoping one of you may have an idea about what might be misconfigured.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.