Cloudflare returns Error code 521

https://xrcade.xyz

(please specify the website or account you are asking about)

Error Message

Web server is down Error code 521

Visit cloudflare.com for more information.

2023-02-26 07:00:07 UTC

You

Browser

Working

Seattle

Cloudflare

Working

xrcade.xyz

Host

Error

What happened?

The web server is not returning a connection. As a result, the web page is not displaying.

What can I do?

If you are a visitor of this website:

Please try again in a few minutes.

If you are the owner of this website:

Contact your hosting provider letting them know your web server is not responding. Additional troubleshooting information.

Cloudflare Ray ID: 79f6cd476f25c48b • Your IP:

• Performance & security by Cloudflare

Other Information

It was working fine in the morning and now it just isn’t working. What can I do to fix this or should I just wait?

5 Likes

Its not showing me the ERR_TOO_MANY_REDIRECTS when I try it. Also I removed the force http to https but still not working my htaccess is:

php_value display_errors On
php_value mbstring.http_input auto
php_value date.timezone America/New_York
ErrorDocument 404 https://www.xrcade.xyz/404/
RewriteEngine On
#force trailing slash
RewriteEngine on
RewriteCond %{REQUEST_URI} /+[^\.]+$
RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L]
#.html to /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(([^/]+/)*([^/.]+))\.html[\ ?]
RewriteRule \.html$ /%1/ [R=301,NC,L]
RewriteRule ^(.*)/$ /$1.html [NC]

I see it like this

but I notice that you have probably turned off CF (orange cloud)

this code must not be declared more than once

RewriteEngine On
4 Likes

Ya I turned off CloudFlare till I can figure out the problem, so what is the problem?

The problem was while you were using Cloudflare (something in the interaction between CF and origin)
as stated in the first article - you had a redirection loop

Enable Cloudflare and simply comment/or remove your .htaccess file

so you’ll know if it’s a .htaccess problem or something to do with CF settings

sometimes CF can simply put something in the cache
so you don’t see the difference
and I recommend purging all cache on CF
when you examine or modify the .htaccess file (either for 404 error pages or for something else)


Besides that, you have a problem with this custom error page of yours

Either that file does not exist (ErrorMain.js) or you gave it the wrong extension, so instead of .js it should be .html ?


6 Likes

Use Cloudflare ssl full mode may fix the issue .

2 Likes

I am aware that ErrorMain.js is no longer there (it is an old 404 page I need to update it), thanks though, I will try what you suggested

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