mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #422] SSL on default site #356
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#356
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dam57950 on GitHub (May 25, 2020).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/422
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!
@ItsEcholot commented on GitHub (Aug 26, 2021):
This would be especially useful, since nginx-proxy-manager supports (yay) letsencrypt wildcard certificates.
@mriksman commented on GitHub (Oct 21, 2021):
+1. Very strange that we can't set the default page up like we set up a Proxy Host (Force SSL, set certificates etc).
@benjaminchodroff commented on GitHub (May 23, 2022):
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.
@user01010111 commented on GitHub (Sep 6, 2022):
+1 here -- I think this should be an option.
@inthebrilliantblue commented on GitHub (Oct 3, 2022):
+1 here. SSL on default anything in the default site settings is horribly broken.
@jepcd commented on GitHub (Nov 17, 2022):
+1 again, would be really useful
@manfred-warta commented on GitHub (Nov 1, 2023):
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.
@github-actions[bot] commented on GitHub (May 23, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@gausie commented on GitHub (May 23, 2024):
Please keep it open!
On Thu, 23 May 2024 at 02:50, github-actions[bot] @.***>
wrote:
@BrammyS commented on GitHub (Jun 6, 2024):
+1
@mrbaloghakos commented on GitHub (Jun 24, 2024):
Set up a
404 Hostfor*.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.
@cptn-cosmo commented on GitHub (Dec 27, 2024):
+1
@github-actions[bot] commented on GitHub (Jul 22, 2025):
Issue is now considered stale. If you want to keep it open, please comment 👍
@eastoncrafter commented on GitHub (Nov 16, 2025):
Can this issue be brought back to life? I'd like to be able to customize my default site, and I use cloudflare which will throw an error if its not over ssl
@hagih commented on GitHub (Nov 18, 2025):
This feature request (adding an SSL certificate to the default site) is absolutely necessary for the default site to work at all in certain circumstances. It's a shame it's not simply an option to pick an SSL certificate for the Default page like you can for all other services.
Why:
Workarounds considered:
In short: please consider adding this feature - the ability to select an SSL certificate for the default site.
Thanks
@hagih commented on GitHub (Nov 18, 2025):
After waaaay too long of messing around with this, I was able to setup a new webserver and file editor in docker containers and then use a wildcard proxy host in NPM to point any unknown clients to the new webserver. This bypasses the woefully limited "default site" settings and allows an SSL certificate to be applied.
Of course due to more limitations of Nginx Proxy Manager (Support for subfolders in proxy hosts #40: Closed as not planned), apparently it's not possible to point a proxy host a specific folder on that webserver, so I ended up just dunking the HTML in the root of the web server. So an entire web server dedicated to just serving the default page so that NPM can add SSL to it before serving. Urgh