Support

Admin Tools

#43207 Getting 504 Gateway Timeout on admin login after using Cloudflare

Posted in ‘Admin Tools for Joomla!’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
5.4.7
PHP version
8.3.31
Admin Tools version
7.8.9

Latest post by rmesceo on Thursday, 30 July 2026 00:16 CDT

rmesceo
Dear Akeeba Support Team,

We are writing to seek technical assistance regarding an issue with logging into our website's administrator backend.

Since implementing Cloudflare (Free Plan), accessing the backend results in a "504 Gateway Timeout" error. We have confirmed that disabling Admin Tools resolves the issue and allows us to log in normally.

Could you please advise on the recommended configuration or settings in Admin Tools and Cloudflare to resolve this conflict?

Thank you for your assistance.

nicholas
Akeeba Staff
Manager

Your site is now behind a CDN. Your server only sees the IP address of the CDN, not the IP address of your site's visitors. This means that a number of blocked requests, even from unrelated visitors, now block the entire server.

Fixing this is simple.

Go to your site's Global Configuration page and enable Behind Load Balancer. Save the configuration.

This tells Joomla to trust the IP address carried in the HTTP X-Forwarded-For header which, in your case, is set by CloudFlare. Therefore, Joomla now sees the IP address of your site's visitor. The code behind this core Joomla feature was contributed by us; it was originally created for Admin Tools, exactly for this use case you have here.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

rmesceo
Understood. The issue has been successfully resolved.
Thank you for your assistance.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!