NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
23.07k stars 2.68k forks source link

Problem with Cloudflare vs NginxProxyManager SSL certificates #4158

Open aristosv opened 2 days ago

aristosv commented 2 days ago

I am trying to understand the logic behind SSL usage for NginxProxyManager.

This is the configuration for this domain in NginxProxyManager

1

2

And this is the WordPress configuration

3

And yet when you visit the website, you'll see it's accessible via https. No errors or anything.

But when I try to create a new page in WordPress, I get the following error.

4

When I enable an SSL certificate in NginxProxyManager, the website stops working, with too many redirects.

5

I suspect these issues are related to problematic SSL/TLS configuration. Perhaps a conflict between Cloudflare and NginxProxyManager certificates?

So what is the correct way to use either a Cloudflare or an NginxProxyManager certificate?

kerstenremco commented 6 hours ago

First, it's not a good idea to use http instead of https between Cloudflare <-> your NPM instance. Does Cloudflare include the correct hostheader? When I try to access your website, I see the default page.

SCR-20241115-oqko