Community Tip - Fixing Error 523: Origin is unreachable

Try the suggestions in this Community Tip to help you fix “Error 523: Origin is unreachable”.

Error 523 indicates that there is an issue in the origin web server and it has become unreachable. The most common cause is that your DNS settings are incorrect. When this happens, you’ll see “Error 523: Origin is unreachable”.

Banner in tip catalog

Cloudflare Diagnostic Center
Checks: nameservers, DNSSEC, DS record configuration, if connecting to ‘’ works, if connecting to ‘’ works, & for existing MX records

Quick Fix Ideas

  1. Note that if Always Online is enabled, this status code will trigger an Always Online page to be served.

  2. Contact your hosting provider to confirm your origin IP and then make sure the correct IP is listed for your A records in the DNS tab of the Cloudflare dashboard. Wait up to 5 minutes for the change to take effect.

  3. If you’re using a VPS and your site is configured to use the database at (your domain) instead of localhost. Since your database is most likely hosted on your VPS, find the config file and set database to use ‘localhost’ without quotes. Update the password as needed.

  4. It may be a routing issue between Cloudflare’s systems and the origin web server. Make note of the Cloudflare Ray ID on the error page and send it to Cloudflare Customer Support to track down where the connection failed.

  5. If you are confident the problem isn’t your web hosts, please include a traceroute between your origin and one of Cloudflare’s IP addresses, ideally one of the addresses that usually sends requests to your site. See how to run a traceroute test.

  6. If it was working before with HTTP, but not with HTTPS, then it means your server isn’t configured to use HTTPS/SSL for your website. Get your host to install SSL and that should fix it.

  7. If you are using Railgun and are the customer of a Cloudflare Hosting Partner, you should contact that Hosting Partner about this issue. If you are running your own Railgun, then you should contact Cloudflare Customer Support and provide the most recent syslog file from your Railgun server.

Lite Reading

Community Tutorial

Background Resources
Help Center

Research The Issue

If You Need More Help
This community of other Cloudflare users may be able to assist you, login to Cloudflare and post your question to the Community. When you post on the Community make sure to include as much of this information as possible: the specific error message you are seeing, the URLs this is happening on, screen shot of the error, and the steps to reproduce the error. Please indicate what troubleshooting steps you’ve tried in order to help us help you.

Expert Comments Appreciated
This Community Tip will remain open for input from Community experts and those familiar with this issue. We really appreciate comments that start with words like: “The three things I always try”, or “Do this first” or “In my experience”.

This is a Cloudflare Community Tip, to review other tips click here

Çevirme…traduzir…翻译…traducir…Traduire…Übersetzen…:greyg: Translate this Tip

FXOUCT 101819

Error 523: Origin is unreachable
Error 523 even after DNS set properly
Error 523 - HTTPS and HTTP
Why does my IP change?
Error 523 when i use apache2 server in raspberry pi os with interface nextcloud
Error 523 ; webhost unreachable
Error 523 onn all domains
521 Error on my website (i changed the defaults ports)
Error 523 - Origin Unreachable...but?
Get an 523
Moving the website to new host
Subdomain don't open
Error 523 Ray ID: 57c2dcbe9e90c9ea Origin is unreachable
Error 523, but intermittently
Error 523 , Origin is unreachable, how to solve it?
I receive too much Error 523 Origin is unreachable
Error 523(use vultr host)
Error 523 from USA
Need Help Error 523 cannot open in China only
The CF that has just been changed here cannot be used after DNS resolution is set. Error 523 is displayed. What is going on
Sitemap.xml issue
Disabling DNSSEC
Error 523
Port 8080 not working
Website origin is unreachable after installing ssl via letsencript certbox
My website is down after using Purge Everything feature from Caching
Error 523?
My website can be accessed via IPv4 address, but CloudFlare gives error 523
Something a late friend of mine made for me but I never had the chance to see it
523 Error with proxy
ERRO 523 a origem é inacessivel
Getting thousands of HTTP errors 509, but origin seems fine
Error 522 even I configure iptables and firewall
The website error 523
Cloudflare gives 523 Origin Unreachable in certain areas
Community Tip - Alle veröffentlichten Tipps
Community Tip - 公開されているすべてのヒント
Error 523 Ray ID: 6c209cb66e44495f • 2021-12-23 09:37:36 UTC Origin is unreachable
Error 523 in the morning
Question on site
Origin is unreachable
Origin is unreachable
Origin is unreachable
Origin is unreachable
Error 523 once a day, happened everyday
Origin is unreachable
Error 523 in the morning
Suddenly Error 523 when trying to access our website
Ssl handshake 523
Domain cannot reach homeserver
I can’t reach and use
Error 523, pointing to wrong IP
Increase Time out Setting
My domain name,, not find my site
Error 1034 & 522 & 523
Instant for static, slow (>4.5s) for dynamic
Authenticate website under Cloudflare Pages
Intermittent 523 Errors
HostError 523
Params setting correct, but users getting 523 error
My web get 523 error from cloudflare
My web get 523 error from cloudflare
Lot of 524 errors
Help to defeat the error Error 523 Origin is unreachable
HostError 523
HostError 523
HostError 523
HostError 523
Params setting correct, but users getting 523 error
Error 523 Origin is unreachable for Cloudflare Pages
Can't get my site to work anymore
Pages custom domain is not verifying
Help Error 523 Ray ID: 4a09d0cf5818c4f6 • 2019-01-29 06:59:23 UTC Origin is unreachable
Error 523 Origin is unreachable
Community Tip - All Published Tips
CloudFlare is Giving Me 523 Origin is Unreachable But It's Not
HELP! Error 523 when using Universal SSL
Error 523 Origin is uncreachable with reverse proxy configuration
Error 523 for every click!
Cloudflare is giving 523 Error! Really!
Error 523 - I need help
New router.... website not reachable (error 523)
Help me about access url website
Error Code 523
Community Tip - Helpful Links, on Display
Dns to worker page error 523
Our website is down
Intermittent Error 523
522 and 523 time out errors
Error 523 from this morning
Error 523. How to fix it? Cinema press