NginxProxyManager / nginx-proxy-manager

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

New type of hosts: Masked hosts, should be simple. #3914

Open jdelgadocr opened 2 months ago

jdelgadocr commented 2 months ago

I need to use my domains for pages from a service I contracted. The service charges too much for accepting my domain so I use WP to load the plugin "Content Mask" which I enable in a given page to make it load the long URL in an iFrame. I set that page as my WP homepage so now when people goes to my domain it internally loads the stuff from the service but the browser still shows my domain in the URL bar. For each new site I have to setup a new docker container and configure it. It takes me about 30 minutes to get it ready. (I know, I can try some other approachs) Having NPM doing it would be a 5 minute thing (because I use LetsEncrypt certs) I tried some custom Nginx custom config with Proxy, Redirection and 404 Host types but no luck with that. I think this could be something easy using as a starter point the 404 Host type. Just fill the body element with:

That's it.