mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 01:15:51 +03:00
[GH-ISSUE #5287] Bug Report: deny all; directive persists in proxy host configuration #3158
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#3158
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 @ppetermans on GitHub (Feb 8, 2026).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/5287
Description: There is an issue where a deny all; directive is automatically added or persists in the generated Nginx configuration file (e.g., data/nginx/proxy_host/3.conf), preventing any traffic from reaching the backend even when access is set to "Public".
Steps to Reproduce:
Create a new Proxy Host in the admin interface.
Configure it to forward traffic to a local or internal service.
Save the configuration.
Check the generated .conf file in the /data/nginx/proxy_host/ directory.
Expected Behavior: The configuration should only include deny all; if specific access restrictions are set. If the host is public, this directive should be absent or commented out.
Actual Behavior: The deny all; directive is present, causing a "403 Forbidden" error for all external users. The only way to fix it is to manually run: sed -i 's/deny all;/#deny all;/g' /data/nginx/proxy_host/3.conf && nginx -s reload
Environment:
Image: jc21/nginx-proxy-manager:latest
OS: Windows 10/11 (using Docker Desktop / WSL2)
Docker Compose:
YAML
version: '3.8'
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
container_name: nginx-proxy-manager
restart: unless-stopped
ports:
- '80:80'
- '81:81'
- '443:443'
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
@jc21 commented on GitHub (Feb 17, 2026):
Thanks for the report, I'll get to this one soon.
@jc21 commented on GitHub (Feb 18, 2026):
Ok so following your replication steps verbatim, using v2.14.0:
It produces the following nginx config:
and does not contain any deny directives. You didn't specify to use an Access List or what the shape of that Access List data looks like.
@jc21 commented on GitHub (Feb 18, 2026):
After assigning a standard user/pass access list:
And after assigning an IP-based access list:
And finally, after assigning Public back on the host:
I'm unable to see a persisting deny directive.
@deathblade666 commented on GitHub (Feb 19, 2026):
i found where if you disable and then re-enable the proxy host after assigning an access list it will default to deny all, not sure if the same issue, but seems similar. would expect it to re-apply the AC once re-enabled.