[GH-ISSUE #1016] Having issues with custom locations and access lists #855

Closed
opened 2026-02-26 06:34:41 +03:00 by kerem · 8 comments
Owner

Originally created by @Timmiej93 on GitHub (Apr 13, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1016

Before I start: I tried using the designated subreddit for this, but I've been waiting a couple of days to gain permission to post to it now (why would it even be locked?), and it turns out the only moderator's account has been suspended, so I'm forced to go here instead.

So in theory, Nginx Proxy Manager is something I should really like, since those Nginx / apache conf files are just horrible to read, but I'm not having much luck with it. Both custom locations and the access lists aren't working properly for me

Custom locations
I want to map example.com/specialPath to a docker container, similar to doing

location /specialPath/ {
    proxy_pass          http://docker-container-hostname:port/;
    proxy_set_header    X-Forwarded-For $remote_addr;
    proxy_set_header    Upgrade $http_upgrade;
    proxy_set_header    Connection "upgrade";
}

The configuration shown above works, both in my previously used nginx setup, and when I paste it in the input field that comes up when you hit the cogwheel on the custom location. Entering the following things for the custom location doesn't work though:

Location: (tried all of the following) specialPath /specialPath /specialPath/ /specialPath/*
Scheme: http
Forward hostname: docker-container-hostname
Forward port: port

Why doesn't this work?

Access lists
I also wanted to protect my pages with basic auth, so I created an access list, added it to the proxy host, and reloaded the website. The login prompt comes up as expected, but upon entering (absolutely 100% correct) credentials, it goes away and immediately pops back up again, basically keeping me in a "please sign in" loop, and never allowing me through. I don't see how I could have possibly messed this up, any suggestions?

Originally created by @Timmiej93 on GitHub (Apr 13, 2021). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1016 Before I start: I tried using the designated subreddit for this, but I've been waiting a couple of days to gain permission to post to it now (why would it even be locked?), and it turns out the only moderator's account has been suspended, so I'm forced to go here instead. So in theory, Nginx Proxy Manager is something I should really like, since those Nginx / apache conf files are just horrible to read, but I'm not having much luck with it. Both custom locations and the access lists aren't working properly for me **Custom locations** I want to map example.com/specialPath to a docker container, similar to doing ``` location /specialPath/ {     proxy_pass          http://docker-container-hostname:port/;     proxy_set_header    X-Forwarded-For $remote_addr;    proxy_set_header    Upgrade $http_upgrade;   proxy_set_header    Connection "upgrade"; } ``` The configuration shown above works, both in my previously used nginx setup, and when I paste it in the input field that comes up when you hit the cogwheel on the custom location. Entering the following things for the custom location doesn't work though: ``` Location: (tried all of the following) specialPath /specialPath /specialPath/ /specialPath/* Scheme: http Forward hostname: docker-container-hostname Forward port: port ``` Why doesn't this work? **Access lists** I also wanted to protect my pages with basic auth, so I created an access list, added it to the proxy host, and reloaded the website. The login prompt comes up as expected, but upon entering (absolutely 100% correct) credentials, it goes away and immediately pops back up again, basically keeping me in a "please sign in" loop, and never allowing me through. I don't see how I could have possibly messed this up, any suggestions?
kerem 2026-02-26 06:34:41 +03:00
  • closed this issue
  • added the
    stale
    bug
    labels
Author
Owner

@michael-engelhardt commented on GitHub (Apr 17, 2021):

Hello @Timmiej93 .
I am experiencing the same problem with the access lists. Always popping up again after entering the correct credentials.

<!-- gh-comment-id:821811211 --> @michael-engelhardt commented on GitHub (Apr 17, 2021): Hello @Timmiej93 . I am experiencing the same problem with the access lists. Always popping up again after entering the correct credentials.
Author
Owner
<!-- gh-comment-id:821866178 --> @l4rm4nd commented on GitHub (Apr 17, 2021): See https://github.com/jc21/nginx-proxy-manager/issues/743#issuecomment-808417628
Author
Owner

@Timmiej93 commented on GitHub (Apr 18, 2021):

Hmm, that's a bummer. Do you know if it's a fixable bug / if it will be addressed at some point?
Also, do you know anything about custom locations not working through the GUI?

<!-- gh-comment-id:821967781 --> @Timmiej93 commented on GitHub (Apr 18, 2021): Hmm, that's a bummer. Do you know if it's a fixable bug / if it will be addressed at some point? Also, do you know anything about custom locations not working through the GUI?
Author
Owner

@michael-engelhardt commented on GitHub (Apr 21, 2021):

I am actually not using Custom Locations, but still I have the same pop up bug with the access lists.

<!-- gh-comment-id:823944865 --> @michael-engelhardt commented on GitHub (Apr 21, 2021): I am actually not using Custom Locations, but still I have the same pop up bug with the access lists.
Author
Owner

@chaptergy commented on GitHub (May 12, 2021):

Duplicate of https://github.com/jc21/nginx-proxy-manager/issues/148

<!-- gh-comment-id:840102860 --> @chaptergy commented on GitHub (May 12, 2021): Duplicate of https://github.com/jc21/nginx-proxy-manager/issues/148
Author
Owner

@Timmiej93 commented on GitHub (May 13, 2021):

Duplicate of #148

Only the authentication part. You're ignoring the fact that I also am having issues with custom locations.

<!-- gh-comment-id:840411067 --> @Timmiej93 commented on GitHub (May 13, 2021): > Duplicate of #148 Only the authentication part. You're ignoring the fact that I also am having issues with custom locations.
Author
Owner

@github-actions[bot] commented on GitHub (Mar 13, 2024):

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

<!-- gh-comment-id:1993072745 --> @github-actions[bot] commented on GitHub (Mar 13, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@github-actions[bot] commented on GitHub (Apr 25, 2025):

Issue was closed due to inactivity.

<!-- gh-comment-id:2829221161 --> @github-actions[bot] commented on GitHub (Apr 25, 2025): Issue was closed due to inactivity.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#855
No description provided.