We switched usbji.org over to Cloudflare last weekend. The site itself loads fine. When attempting to submit a form or to log in, however, the request always fails with a 524 timeout.
This timeout is spurious. If I bypass Cloudflare and attempt to log in (e.g. from the internal network), the login works fine, responding in less than a second. If, while the browser is still spinning, you stop the browser and refresh the page, the dashboard for an authenticated user will appear normally as well, and after that, you can click around and submit forms as an authenticated user without any problem. The same is true if, from the 524 error screen, you click on the supposedly failing URL.
This is a Drupal 7 site with CiviCRM. We have multiple such sites set up on Cloudflare and this is the first time we have ever encountered this problem. The server is not under load or remotely close to it, and indeed connections to this server are restricted to Cloudflare IPs.
I have attempted the following:
- tried all three SSL settings (our other sites are all set to Full (strict) and work fine)
- set page rules to bypass Cloudflare for the login and CiviCRM URLs
The Speed Test, incidentally, was also failing for www.usbji.org .
Any insights would be appreciated.