nginx-proxy-manager icon indicating copy to clipboard operation
nginx-proxy-manager copied to clipboard

SSL on default site

Open dam57950 opened this issue 5 years ago • 16 comments
trafficstars

Hello, I would like tu use ssl certificate when trying to access unknow host.

I'm using safari so after getting the https one time, it always want to redirect http to https and when trying to access to unknown host error page, it can't connect because of the lack of certificate.

Thanks for all you work!

dam57950 avatar May 25 '20 01:05 dam57950

This would be especially useful, since nginx-proxy-manager supports (yay) letsencrypt wildcard certificates.

ItsEcholot avatar Aug 26 '21 10:08 ItsEcholot

+1. Very strange that we can't set the default page up like we set up a Proxy Host (Force SSL, set certificates etc).

mriksman avatar Oct 21 '21 12:10 mriksman

Hitting this too, +1. Would love a feature to support a default site for https that allows a wildcard SSL certificate to be used to show a generic error page/redirect.

benjaminchodroff avatar May 23 '22 03:05 benjaminchodroff

+1 here -- I think this should be an option.

user01010111 avatar Sep 06 '22 05:09 user01010111

+1 here. SSL on default anything in the default site settings is horribly broken.

inthebrilliantblue avatar Oct 03 '22 13:10 inthebrilliantblue

+1 again, would be really useful

alakhpc avatar Nov 17 '22 18:11 alakhpc

Hello, in fact the default site is not able to answer with different certificates anyway you can use a nice workaround:

Just configure a Redirection Host with a wildcard domain name eg. *.mydomain.xy and do a 307 temporary redirect to you forward domain. On the SSL tab you can specify your prefered certificate.

If you host multiple domains with your NPM just do this for each domain and you are done.

Hope that helped a bit.

manfred-warta avatar Nov 01 '23 11:11 manfred-warta

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

github-actions[bot] avatar May 23 '24 01:05 github-actions[bot]

Please keep it open!

On Thu, 23 May 2024 at 02:50, github-actions[bot] @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/NginxProxyManager/nginx-proxy-manager/issues/422#issuecomment-2126046363, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABL4LTUBPLMYXWTYSM4WHTZDVDOVAVCNFSM4NJENUY2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMJSGYYDINRTGYZQ . You are receiving this because you are subscribed to this thread.Message ID: @.*** com>

gausie avatar May 23 '24 05:05 gausie

+1

BrammyS avatar Jun 06 '24 07:06 BrammyS

Set up a 404 Host for *.yourdomain.com, then set the SSL certs as you like (I'm using my cert wildcard, and force SSL). Now if I hit a non existent subdomain, then it will show the ususal 404 page with SSL. All the existing subdomains (eg nas.mydomain.com) will still work as before, this only affects non existing subdomains.

You can't set a nice custom 404 page this way, but at least you can have SSL on your 404 page.

SCR-20240624-pwxh-2

mrbaloghakos avatar Jun 24 '24 16:06 mrbaloghakos