502 Gateway Error

Hi! My website does not work with Cloudflare. I’m using cloudlinux + litespeed server. When I resumed my website on Cloudflare it returns 502 gateway error. When I paused it again, it works perfectly. Did you experienced any similar things?

P.S: I’m transferring websites to new server (cloudlinux + litespeed). In the old server (centos7+nginx) all websites worked perfectly.

https://support.cloudflare.com/hc/en-us/articles/218378978-What-should-I-do-after-seeing-a-502-or-504-gateway-error-on-my-site- might fix your issue.

If it doesnt, post your domain and any additional useful details.

Hello. I already try that solution. In fact, according to Cloudflare there is a 502 error but when I redirect my domain directly to host or pausing on Cloudflare website works as perfectly. I believe problem is in the Cloudflare. I contacted with my hosting company many times and they confirmed me there is no problem with server.

grandmount.org - Cloudflare OFF
bkvideography.club - Cloudflare ON

Both websites DNS redirected to Cloudflare.

It usually isnt :wink:

In your case for example you are not even going through Cloudflare but use only DNS. Your domain resolves to your actual host.

So the issue is not with grandmount but with bkvideography?

I dont get a 502 for the latter, be it on HTTP or HTTPS. HTTP works and HTTPS fails straight away with a TLS error. When did you add the domain?

I’m getting following error. Browser waits about a min than gives following error. Before this screen, it gives Cloudflare 524 a few secs than it returns to Cloudflare 502.

If I stop Cloudflare services, it works perfectly as well. Therefore, I’m considering conflict between litespeed and Cloudflare services. I’m java programmer my web programming-server info is limited so I can’t be sure what’s wrong with it. Best regards.

P.S: Cleared browser cache and ipflush. Already done. Same result.

In your case it does not seem to load at all. For me it does load on HTTP at least.

http://sitemeer.com/#bkvideography.club also shows some failures, however https://www.cloudflarestatus.com/ does not list any ongoing issues.

Can you post the output from http://bkvideography.club/cdn-cgi/trace?

uag=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36 OPR/55.0.2994.44

Another funfact. Website opens with Opera VPN. But I close the VPN, website agains give the same error. I am losing my mind. There is no such mind-blowing errors in Java :smiley:

My country: Turkey. I am now considering maybe some Cloudflare services are banned?

The output above was via VPN, where it works?

My mistake. I updated it (without VPN results).


Europe: Working
Asia: Working.
Americas: Working.
Turkey (noVPN): Not working.

Note: Website isn’t banned in Turkey.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.