hello. that’s about 1month that my website users have 520 error on some pages
that’s usually on a heavy page and that is for random users.
I was really upset about this
Thank you very much for checking
For example, I will send you a sample
I assume more processing power (PHP) is needed to generate them?
Try using some caching plugin for WordPress (at least the one to generate .html pages and serve your posts as “Page Cache version” to your visitors - below plugin as an example), if that would be the case.
I would also suggest to tune-up your PHP settings (see below which PHP variables and values to set if possible).
Otherwise, if you could check your firewall if Cloudflare is allowed to connect/send the requests to your origin host / server.
Or, rather it could also be the issue with SSL certificate (HTTPS).
Does your hosting provider have ModSecurity enabled?
Furthermore, kindly re-check if Cloudflare is allowed to connect to your origin host to as follows in the below article:
Before moving to Cloudflare, was your Website working over HTTPS connection?
May I ask what SSL option have you got selected under the SSL/TLS tab at Cloudflare dashboard for your domain ( Flexible, Full, Full Strict … )?
Here is a way to re-check if you correctly setup the SSL for your domain with Cloudflare:
Last but not least, kindly have a look here for more information regarding correct SSL settings at the SSL/TLS tab on Cloudflare dashboard:
This is to thank you for devoting your time to answering my questions and helping me to increase my knowledge on this matter.
I checked all the steps, everything looked absolutely right
But I realized the problem
The list of IPs announced by Cloud Flair does not seem to be complete
And I added some IPs to the list
It seems that the problem is solved now
when i assured to this, I will announce the list of IPs
I am experiencing this too, randomly but 2 out of 3 attempts its returning me 502, but server resources are below 20% usage, and application has been untouched and without weird errors in the log.
Would love to know how to know if it is CloudFlare or something else the 502 page referencing the host is not that much helpful in this case.