kibook / webmap

Live map for FiveM and RedM servers
https://redm.khzae.net/map
26 stars 7 forks source link

HTTP ERROR 502 #5

Open cwoomi opened 2 years ago

cwoomi commented 2 years ago

Getting HTTP ERROR 502 after a while, restarting the resource won't work, any idea on a fix?

Ap3x99 commented 1 year ago

Getting HTTP ERROR 502 after a while, restarting the resource won't work, any idea on a fix?

I was having this issue as well. Here's what fixed it for me: Instead of connecting to the webmap with https://<owner>-<server ID>.users.cfx.re/webmap/, connect to it with http://<server IP>:<server port>/webmap/.

kibook commented 1 year ago

When you're using that https:// URL, you're connecting over a proxy run by Cfx, and in my experience that proxy tends to go down a little too often. The http:// URL is connecting directly to your server with nothing in between. If you need HTTPS, you may want to look into running your own proxy on your server, for example using Apache.