-
Hi there, I'm having an issue with setting up an nginx reverse proxy for my Plan web server installation. Everytime I attempt to connect I get a 502 (Gateway) issue. I have followed the instructions for nginx reverse proxy to the tee, and went through the troubleshooting steps. I even read through the entirety of this issue here: Why isn't my Nginx proxy working? The steps myself and my partner took to debug were the following:
Edit: The BungeeCord server is run on Pterodactyl. Which sits on CentOS 8, and the NGINX proxy is running on CentOS 9. It may be possible that it is an selinux issue. Once again, I don't believe it likely A log from /var/log/nginx/error.log
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Additionally we are proxying with cloudflare to the reverse proxy, to the Plan web server, however I doubt this to be the issue. As well, full ssl is enabled with an origin and edge certificate setup. |
Beta Was this translation helpful? Give feedback.
-
From this it sounds like Plan was reached, and as intended it tried to redirect to Alternative_IP, but that went to nginx which gave a 502 error for some reason. This leads me to believe that the address being proxied to is somehow wrong address. Does it work if you proxy pass to local 127.0.0.1:8804? Is the nginx and pterodactyl on the same machine? If not the above advice might not work - Has the routing between the machines been set up? If all these fail, I did find some issues related to the error 13 permission denied and selinux, so your hunch on that being the case might be correct - this might help https://stackoverflow.com/a/30952561 |
Beta Was this translation helpful? Give feedback.
From this it sounds like Plan was reached, and as intended it tried to redirect to Alternative_IP, but that went to nginx which gave a 502 error for some reason.
This leads me to believe that the address being proxied to is somehow wrong address. Does it work if you proxy pass to local 127.0.0.1:8804?
How about the pterodactyl local network IP of the bungeecord container (172.x.x.x:8804)?
Is the nginx and pterodactyl on the same machine? If not the above advice might not work - Has the routing between the machines been set up?
If all these fail, I did fin…