NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
22.25k stars 2.57k forks source link

Unable to login using self-proxied domain #2793

Open BigJazzz opened 1 year ago

BigJazzz commented 1 year ago

Checklist

Describe the bug As in the above ticket, I'm unable to log in using a proxied, access-restricted domain. The page refreshes after logging in with no error on page. This bug doesn't occur when using the local IP address, or when setting NPM proxy host to Public.

Nginx Proxy Manager Version 2.10.2

To Reproduce Steps to reproduce the behavior:

  1. Create host entry pointing to self
  2. Create access list with:
    • Satisfy Any
    • Username/password
    • IP whitelist
  3. Try logging in
  4. Screen refreshes with no error
  5. Check logs, see below error

Expected behavior NPM should log in when self-proxying. This was working previously, however a recent update seems to have stopped this. Unfortunately I can't tell you which version this works on.

Screenshots N/A

Operating System Raspbian GNU/Linux 11 (bullseye)

Additional context

rahul1996pp commented 1 year ago

you can fix this issue by adding this in .conf that you can found in this path "/data/nginx/proxy_host"

proxy_set_header Authorization $http_authorization;

AlgoYu commented 1 year ago

https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2793#issuecomment-1676462864 same, not work.

cepheiden commented 11 months ago

same here

aheath70 commented 9 months ago

Just hit the same issue.

KvizadSaderah commented 8 months ago

proxy_set_header Authorization $http_authorization;

helped, thanks!

luiscamalmeida commented 7 months ago

I belive it has something to do with access lists and this option

image

matteo-passeri commented 6 months ago

Same here, and this:

you can fix this issue by adding this in .conf that you can found in this path "/data/nginx/proxy_host"

proxy_set_header Authorization $http_authorization;

didn't work unfortunately.

theasianpianist commented 4 months ago

I ran into this same issue, was able to resolve it by clearing my browser (Chrome) cache via the dev console https://developer.chrome.com/docs/devtools/network/reference/?utm_source=devtools#disable-cache

coreyaboy commented 4 months ago

Woa boy this is a frustrating nugget to chew on. I've been over every suggestion I can find on this one, and none of them will do the trick for me. Throwing my name in the "doesn't work for me" bucket. Don't think I have anything meaningful to contribute though ...

Ctrl-Alt-Delight commented 3 months ago

I ran into this same issue which lead me to this thread.

I recently added a IP range to an access list, but it turns out my password manager decided to autofill an authorization username/password at the same time. Removing the Authorization username/password fixed the issue for my setup.