mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 09:25:55 +03:00
[GH-ISSUE #3731] Toggling "HSTS Enabled" leads to "Unknown hsts_header variable" error with proxy offline #2461
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#2461
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 @NeoMod on GitHub (May 1, 2024).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3731
Checklist
jc21/nginx-proxy-manager:latestdocker image?Describe the bug
This seems, feels, and behaves like yet another error related to the plethora of issues reported with the version 2.11.0 and 2.11.1 but with another presentation.
Upon creation of a new "Proxy Host", without even accessing the "Custom Location" tab neither setting one, enabling the option "HSTS Enabled" in the "SSL" Section leads to an "Offline Status" with the following error: "unknown hsts_header variable".
I have already mounted an empty "_hsts_map.conf" at the "/app/templates/" path inside the container without any luck; disabling the "HSTS Enabled" toggle brings the host immediately on-line, working as expected.
I am using Cloudflare, both as domain registar with DNS managment and SSL Certificate Provider, with proper SSL and HSTS settings.
On a similar machine, using the previous NPM version (2.10.4) - as many other users mentioned - solved the issue.
Nginx Proxy Manager Version
V. 2.11.1 (tested and confirmed also with 2.11.0)
To Reproduce
Steps to reproduce the behavior:
Additionally, upon deleting the above-created entry, docker logs for the container show an error about a file deletion:
Instead, on Version 2.10.4 the Log shows something a bit different, as soon as the Proxy Host is created altough it seems to be working as expected:
Expected behavior
The "Proxy Host" should be created without issues even with the "HSTS Support" enabled.
Screenshots
Operating System
Docker version 26.1.0, build 9714adc
Debian GNU/Linux 11 (bullseye)
Additional context
Somehow it seems related to the following: #3474 #3678 #3484 #3512
Users have shared many different approaches to try and fix the issue in the comments, altough the results seems to vary; the consensus verges toward downgrading to v.2.10.4 to restore functionality.
@github-actions[bot] commented on GitHub (Dec 27, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@NeoMod commented on GitHub (Dec 27, 2024):
Still an issue one month after publishing this report; moved away from NPM since then. I'm closing this, unfortunately with no solution for the next person whom shall find this post.
@Daronsong commented on GitHub (Jun 28, 2025):
Can this please be reopened, I still have this issue!
@NeoMod commented on GitHub (Jun 29, 2025):
@Daronsong, I will reopen the issue, but I don't know how helpful it could be since I don't have any means to test it further, since I changed the software.
@Daronsong commented on GitHub (Jun 29, 2025):
I’m having a similar issue where toggling hsts causes the host to become offline and unreachable, and could continue testing.
Devon Bisaillon
@.***
(705) 618-2679
On Jun 29, 2025, at 10:12 AM, NeoMod @.***> wrote:
Reopened #3731https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3731.
—
Reply to this email directly, view it on GitHubhttps://github.com/NginxProxyManager/nginx-proxy-manager/issues/3731#event-18374401404, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACADZGWFO4YWRAGZT5XWQVT3F7X5LAVCNFSM6AAAAABUH6EF7SVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJYGM3TINBQGE2DANA.
You are receiving this because you were mentioned.Message ID: @.***>
@github-actions[bot] commented on GitHub (Jan 18, 2026):
Issue is now considered stale. If you want to keep it open, please comment 👍