• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Configuring Plesk with a Reverse Proxy and Cloudflare

ido123

New Pleskian
Hello everyone,
I'm currently working to set up a reverse proxy (NGINX, then Caddy) in front of a Plesk server, with Cloudflare for DNS and CDN. I have been facing several issues and I'm hoping someone here might help point me in the right direction.
Here is my setup:
1. I have a Plesk server that's hosting my website.
2. I am using another server as a reverse proxy to the Plesk server. Originally, I tried setting this up with NGINX and then switched to Caddy to see if it would resolve my issues.
3. In Cloudflare, DNS entries are configured to direct my domain traffic to the reverse proxy server.
4. SSL/TLS mode on Cloudflare is set to "Full".
My issues are:
1. I cannot access my website using my domain. It results in a 522 error.
2. When I remove the reverse-proxy layer and configure my DNS in Cloudflare to point directly to the Plesk server, everything works fine.
3. I have tried changing between different SSL/TLS modes in Cloudflare, but the issue remains.
4. I encountered a redirection loop ("redirected you too many times") issue when I switched from NGINX to Caddy.
I'm looking for guidance on how to properly configure my reverse proxy to work with the Plesk server and Cloudflare. Please ask if you need more details about my configurations, and I'll provide as much info as I can.
Thank you for your help!
 
I suggest checking that the reverse proxy server can communicate with the Plesk server and that the reverse proxy configuration is correct. You have to make sure that the Plesk server is configured to accept connections from the reverse proxy server and that the Cloudflare DNS records are correct.

For the 522 error, check the reverse proxy configuration, the Plesk firewall, and the Cloudflare DNS record. For the redirection loop, check the reverse proxy configuration for any redirection loops.

That's all, it should work.
 
Back
Top