How to Fix PR_END_OF_FILE_ERROR Conclusion How to Solve 503 Service Unavailable Error If you are unsure about your encryption mode, turn on the SSL/TLS Recommender under the same settings. However, this mode has more requirements for origin certificates. Similar to Full, visitors can decide which protocol to use. Choose the Full SSL mode if you have an SSL certification. Cloudflare connects to the origin server using either HTTP or HTTPS, depending on the visitor’s request. Use this Flexible SSL if you cannot set up an SSL certificate for your domain. All the connections between Cloudflare and your origin are via HTTP. For this method, access your Cloudflare dashboard and select the SSL/TLS button to fix the error 521. The connection refused error can occur if you are not using the right encryption mode. ![]() Check Encryption SettingsĬloudflare encryption modes help connect the CDN with your web origin server. These modules block any IP address that requests a connection more than 22 times. Important! For Apache users, make sure to disable and unload custom Apache modules, such as mod_antiloris and mod_reqtimeout. The code will look like the following image: Then, add the code allow from, and Cloudflare’s IP addresses between the lines: #DO NOT REMOVE THIS LINE Check the IP filtering on your host provider to include Cloudflare IP ranges.įor this method, use the. It will override the server-side security solutions from blocking Cloudflare’s requests. The cURL command is installed in macOS, Linux, and Windows 10 or later, by default.Īlternatively, test the connection to the server to safelist Cloudflare IP ranges. Run a client Uniform Resource Locator (cURL) command to check the URL’s connectivity and server. Since this CDN acts as a reverse proxy, all connections to your server come from Cloudflare’s IP address instead of your visitor’s actual IP address. Another method to fix the error 521 is ensuring your hosting provider hasn’t enabled rate-limiting IP requests from Cloudflare’s IP ranges. If your server’s firewall software blocks Cloudflare IP addresses, it will show the “Error 521: Web server is down” message. Lastly, contact your host’s support if you do not have access to your server connectivity. The WordPress site’s server might be blocking Cloudflare’s requests due to using too many resources. Some plugins can generate a high load on the web origin server. If you are close to reaching the maximum threshold, upgrade your web hosting plan or switch to a different hosting type.įor those facing the error 521 with WordPress, we recommend removing unnecessary plugins. The purple lines on the RAM and CPU usage graphs should not touch the red lines as it is the maximum threshold. To check the limits using Hostinger, head to hPanel → Hosting → Resource Usage. The server cannot respond to Cloudflare’s HTTPS requests when it is overwhelmed. One of the causes behind this Cloudflare-specific error message includes websites reaching the limit of Memory and Central Processing Unit (CPU) usage. If you are familiar with how to use the Terminal, use the Packet Internet Groper ( PING) command for Linux or Traceroute for Windows.Īnother method to make sure the origin server is running is to check your order usage. Other than the server status, check your origin web server’s connection. If there is ongoing maintenance or the hosting provider is experiencing downtime, your server will be blocking IP requests. Check Whether the Origin Server Is RunningĬhecking your server status is another way to find out what causes the error 521. Important! We recommend checking if the website is down for everyone or only for you. In addition, remember to clear your browser cache after finishing to see the changes. ![]() Make sure to have access to the web server and Cloudflare dashboard before starting to fix the error 521. If you have previously enabled PHP error logging, find the log in the home//.logs/error_log_ file. One of the ways to find out what is causing the error 521 is to check the server’s error logs. Thus, the origin server might be blocking requests due to the encryption settings. Cloudflare has its own Secure Sockets Layer (SSL) certificate and encryption modes. In addition, this error can occur when the origin web server process, such as Apache or NGINX, has stopped running properly. ![]() If your hosting provider experiences downtime, the website will be unresponsive to Cloudflare requests. Some server-side security solutions might block large requests from a single IP address. This CDN acts as a reverse proxy, which means all connections to your server will come from Cloudflare IPs. ![]() Make sure the server is configured properly when setting up this CDN. Some of the causes behind the origin web server not returning a connection error include:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |