NginxProxyManager / nginx-proxy-manager

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

Don't count hosts that are disabled as "in use" #2617

Open daniel-widrick opened 1 year ago

daniel-widrick commented 1 year ago

Is your feature request related to a problem? Please describe.

If I disable a host, I cannot add a domain name from that host to an enabled host. I work on websites in prod/dev environments. It would be convenient to "flip a switch" and start routing requests to the production website to the testing backend.

Describe the solution you'd like

I would like the following:

Describe alternatives you've considered

manually editing the backends is painful and slower than being able to toggle from test to prod.

Additional context

Ultimately, we're dealing with the bad decisions of wordpress and trying to work around them.

github-actions[bot] commented 9 months ago

Issue is now considered stale. If you want to keep it open, please comment :+1:

DingWeizhe commented 4 months ago

I also need this feature.

but I found an alternative, since each setting can have multiple domains, I added a domain to each setting (for labeling but had no effect) and had the real domain set on the corresponding setting when I needed to use it.

I will first create three domain names settings (prod, uat, sit), and set the SSL of all three to www.abc.com. If I need to enable prod, I only need to confirm that www.abc.com is not in uat / sit and add it to prod.