mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #467] Default host does not include letsencrypt config #393
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#393
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 @joshbenner on GitHub (Jun 20, 2020).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/467
The default site at
/data/nginx/default_host/site.confdoes not include the Let's Encrypt configuration at/etc/nginx/conf.d/include/letsencrypt-acme-challenge.conf.The impact of this is that any Let's Encrypt certificate acquisition that would go to the default site cannot succeed. This means only hostnames with active hosts attached can create or renew certificates with Let's Encrypt.
Failure Example 1:
Failure Example 2:
Success Example:
The external Let's Encrypt service will attempt to make the challenge HTTP request to each of the domains in the certificate, and if any fail, the certificate is not issued. Those domains in the cert which are not associated with an active host config will fail, and so will the cert.
I suspect this may be related to difficult-to-reproduce errors such as #396 or #250, but it's pretty difficult to be sure.
I'm positive this was not always the case, as I was previously able to request an SSL cert from Let's Encrypt before I had setup the host config. I was also able to include additional hostnames in the Let's Encrypt certs that I was not yet using. Both of these approaches no longer work due to the issue described.
I suspect the fix is as easy as adding this to the default_host site.conf:
@joshbenner commented on GitHub (Jun 20, 2020):
FWIW, it looks like 404 hosts also do not include it.
@fbhdk commented on GitHub (Jun 21, 2020):
I am seeing this as well after finding out that a bunch of certs were expired
@github-actions[bot] commented on GitHub (Mar 28, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@github-actions[bot] commented on GitHub (May 8, 2025):
Issue was closed due to inactivity.