Plesk + Ubuntu 20.04 LTS - Random Cloudflare 520 Error

Most of your might have experienced that after using Ubuntu 20.x LTS + Plesk their websites are getting random CloudFlare 520 errors. 

Cause:

The error is caused due to invalid headers. 

Fix:

It has been resolved by adding the following line to nginx configuration file /etc/nginx/conf.d/enable_proxy_hide_header_upgrade.conf:

proxy_hide_header Upgrade;

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to get/reset lost Plesk Administrator password in Plesk for Linux

Login as root.  # plesk bin admin --set-admin-password -passwd '*****' Run the command below...

How to Generate 1 Time Link for Plesk (to login without password)

For security reasons, the command to retrieve a Plesk "admin" password has been removed in Plesk...

Unknown "no_cache" variable nginx

The issue might be caused by outdated custom vhost templates created on 17.5. Plesk 17.8 brings...

How to enable/disable gzip compression in nginx on a Plesk server

Enabling gzip compression for a domain in Plesk Log in to Plesk. Go to Domains >...