Bad performance and error 522 after enabled proxy

Hello,

I have a wordpress working, but after enabled the proxy and set the SSL to full strict, I’m starting to receive a lot of 522 errors,most of them only with the images.

I have checked the database and the wp settings I found googling, and I have changed some.

The wordpress works in a kubernetes cluster, with cert-manager and the orign server certificate created.

Can you please help me to troubleshoot the issue?

The url is www.noldor.nl

A screenshoot

Thanks in advnaced,

Testing with mtr

:~$  mtr --report  www.noldor.nl
Start: 2024-03-01T14:07:16+0100
HOST: some_local_vm                 Loss%   Snt   Last   Avg  Best  Wrst StDev
  1.|-- router                     0.0%    10    0.6   0.5   0.3   0.8   0.2
  2.|-- ???                       100.0    10    0.0   0.0   0.0   0.0   0.0
  3.|-- gv-rc0052-cr102-et120-251  0.0%    10    8.4   9.1   7.6  10.9   1.0
  4.|-- asd-tr0021-cr101-be156-2.  0.0%    10   11.4  11.7  10.3  14.6   1.2
  5.|-- nl-ams14a-ri1-ae51-0.core  0.0%    10   13.1  12.8  10.4  20.8   3.0
  6.|-- ???                       100.0    10    0.0   0.0   0.0   0.0   0.0
  7.|-- 172.71.92.2                0.0%    10   13.6  22.0  10.9  59.7  18.7
  8.|-- 188.114.97.0               0.0%    10   10.0  11.0   9.2  16.9   2.3

I keep getting the 522 error also i need help please

It’s clear the proxy and Wordpress doesn’t work together. Or there is a configuration I don’t know to make it works. I have disabled the proxy and now it works flawless.

Any tip?

Well, I’m done. I’m not going to invest more time on this, it’s a pity, but the proxy with my wordpress doesn’t work. For the records, perhaps helps to somebody, I have added the proxy ips to the traefik as follow:

    forwardedHeaders:
      trustedIPs: 
         - 173.245.48.0/20
         - 103.21.244.0/22
         - 103.22.200.0/22
         - 103.31.4.0/22
         - 141.101.64.0/18
         - 108.162.192.0/18
         - 190.93.240.0/20
         - 188.114.96.0/20
         - 197.234.240.0/22
         - 198.41.128.0/17
         - 162.158.0.0/15
         - 104.16.0.0/13
         - 104.24.0.0/14
         - 172.64.0.0/13
         - 131.0.72.0/22
      insecure: false

But didn’t work in my environment. Honestly, after many weeks of googling and investigating, I would like to know if somebody has a wordpress working behind the cloudflare proxy.

Regards.

something new: I have realised that if I enable the developer mode, which means, disable the cache, wordpress works fine, but If I disable the developer mode, it doesn’t…

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