Redirect & SSL Issues with Nginx Proxy Manager and Virtualmin Setup

Hello,

I’m currently facing a challenging issue involving Nginx Proxy Manager (NPM), Virtualmin, and SSL certificate configurations for two domains I manage: domain1.com and domain2.com. I have set up NPM to manage my reverse proxy needs and Virtualmin for web hosting management. Here are the specifics of my setup and the problem I’m encountering:

Domain Setup:

domain1.com is hosted on a server managed by Virtualmin with an internal IP of 192.168.2.105. It serves a WordPress site and is accessible and working fine.
domain2.com is supposed to proxy to http://192.168.1.107:11000 via NPM, but attempts to access it result in being redirected to domain1.com with a NET::ERR_CERT_AUTHORITY_INVALID error mentioning a CloudFlare Origin Certificate.
Network Configuration:

My Omada controller has NAT rules set up as follows:
NPM ports 2053 and 8880 are forwarded to 192.168.1.107:2053 and 192.168.1.107:8880, respectively.
Virtualmin ports 443 (HTTPS), 80 (HTTP), 53 (DNS), and 10000 (Webmin) are forwarded to their respective ports on 192.168.2.105.
Issue:

Despite correct DNS settings and NAT rules, accessing domain2.com redirects me to domain1.com, and the browser shows an SSL error due to the CloudFlare Origin Certificate, which should not be the case since domain2.com is not using Cloudflare directly.
Possible Cause:

I suspect there might be a misconfiguration in NPM or a networking issue, possibly related to how NPM is set up in bridge mode while Virtualmin is on the host network.
I’ve double-checked my configurations but can’t seem to pinpoint the exact cause of the issue. I’m looking for insights or suggestions on how to resolve the redirection and SSL certificate problem for domain2.com. Has anyone experienced something similar or have any advice on troubleshooting these kinds of issues?

Thank you in advance for any help you can provide!

might not be related at all — how did you come to choose port 11000? I thought that was the default port for Usermin – do you have Usermin installed, configured and running?

Yes, virtualmin is installed and running. 10000 is the default port of virtualmin. 11000 is used by nextcloud, but added on NPM which is 80 and 443.

so sorry, I was WRONG. Usermin uses port 20000 !!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.