I am new to linux and nginx so please explain anything as detailed as possible. 🙂
I have been following this tutorial for my Minecraft server webmap and have had no problems up until this part where it states:
Then after reloading nginx with
sudo nginx -s reload
we should see our BlueMap at the location which had nginx welcome page earlier.
After following the tutorial as best I can up to this point I get a 502 error.
I did some research and found that having localhost or 127.0.0.1 (being apparently the same) as the IP or URL where I access nginx through could confuse the system (I have been accessing nginx though localhost). So I tried changing the proxy_pass
variable from 127.0.0.1:8100 to (any of the IPv4s in the command terminal) + :8100. But then I get a 504 error which I couldn’t fix.
(All of the IP address listed above work in a web browser)
After looking back at the tutorial I found these lines:
The BlueMap is accesible at http://12.34.56.789:8100/
and
You should now be able to observe nginx working at http://12.34.56.789/
So this means that a public IP that can load the map should be able to load nginx but as I said earlier I tried all the IPs that ipconfig /all
gave me so now im stuck. So heres the question: What IP am I supposed to use to be able to access http://127.0.0.1:8100 through nginx without getting the 502 error? Any help is very appreciated! 🙂