How To Install PHP 7.4 and PHP 7.3 ON Ubuntu 18.04/19.04/16.04

banner image

Error 521: Web server is down in plesk with cloudflare

Symptoms

When visiting the website, it fails to load with error 521. The error occurs because the origin web server refused the connection from CloudFlare
CloudFlare is used
Website uses Nginx as a reverse-proxy;

Cause

CloudFlare IP addresses were blocked by nginx because of outdated contents of /etc/nginx/conf.d/cloudflare.conf.
/etc/nginx/conf.d/cloudflare.conf contains old CloudFlare IP addresses list.

Solution

Make sure that you're not blocking CloudFlare IPs in .htaccessiptables, or your firewall.
Make sure that you're operating off of the most recent versions of Bad Behavior or mod_security. You want to ensure that mod_security's core rules aren't blocking CloudFlare requests;
If you are running custom Apache modules, such as mod_antiloris and mod_reqtimeout, disable and unload the modules. These modules will block any time an IP that connects more than 22 times. Since all connections are now coming from a CloudFlare IP, you will definitely hit the limit causing the error page. As soon as you unload the module, the issue will disappear.
Make sure that /etc/nginx/conf.d/cloudflare.conf is up to date and contains all IP addresses found here: https://www.cloudflare.com/ips;

Make sure your provider doesn't rate limiting or blocking IP requests from the CloudFlare IPs and ask them to whitelist the IP addresses found here: https://www.cloudflare.com/ips;
If the issue persists, please visit CloudFlare article regarding this issue.

Error 521: Web server is down in plesk with cloudflare Error 521: Web server is down in plesk with cloudflare Reviewed by Raj on September 29, 2018 Rating: 5

6 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. This comment has been removed by a blog administrator.

    ReplyDelete
  4. This comment has been removed by a blog administrator.

    ReplyDelete
  5. There are a number of reasons why you might want to change your web hosting provider. Here is a step by step plan for what you should do if you want to transfer your website over to a new hosting environment. https://onohosting.com/

    ReplyDelete
  6. host that implements PHP web hosting should succeed fully processed. An advantage is to be noted. PHP hosting has a plenty of versions for programming languages. There are numerous constraints that one has to face when he chooses for PHP web hosting. There are variable types of php web hosting platforms and hosting packages with new technologies. php web hosting is its compatibility and support for different types of databases. https://hostinglelo.in/

    ReplyDelete

Powered by Blogger.