-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error after updating - map not allowed here #3474
Comments
I just did a fresh install of npm and the custom locations also dont work for me. |
Workaround: create empty file named Add this line to the volumes of
|
Same issue here. And since I'm using unraid I can't figure out the workaround. |
Same for me "map directive is not allowed here" if add custom location |
All we are doing is mounting a empty file from the host into tha container dir that has the problematic file, thereby making it empty as well and bypassing the issue. Can you replicate it? |
Also experiencing the same issue here. Just tried to add a new proxy host with custom locations. Appearing Offline. |
jc21/nginx-proxy-manager:github-pr-3478 fixes it for me. |
When running as part of TrueNAS Scale Apps (in k8s), the included configuration UI doesn't allow for adding a custom volume so the suggested workaround can not be applied.
Changing the tag from This breaks custom locations on TrueNAS without fix for now. |
Tried with the following
|
This worked for me but I had to delete the custom location and re-create it before the site showed as online again. |
Here's what worked for me: #3512 (comment) |
Still having the same problem. |
This is also what I'm currently experiencing as of February 23, 2024 |
Same problem here and I have tried all workarounds. |
This workaround works for me as well. I'm on 2.11.1. |
I don't know if someone of you are using "custom locations" to provide different web services from different docker containers, but I think this is very useful thing. If someone has already done this, can help me to understand how to do it, please?
|
Avoid this. Not all services will be happy to be served under a subdir ( https://example.oeg/subdir/ ). You should use subdomains when possible, so www.example.org , phpmyadmin.example.org, mail.example.org. You create a individual entry in NPM for each service. Also, this is offtopic for this issue. |
Thank you so much @daedric7 ! I'll follow your suggestion! 😊 |
Still this problem is happening with a fresh installation.. |
Well this is annoying. At least there is a workaround for now. |
Solved the problem for me. Thanks. |
Weird one. The workaround of mapping a blank Evidently, some of my confs in I'm still downgraded and have not tried going back to 2.11.1, but: I resolved this by checking the container logs with
In this case, it's for a particularly long proxy host I set up (lots of locations), at line 383. I took to editing the file (
I then saved the file and restarted the container, observing the logs for potential errors. Because Nginx exits on the first fatal error in the configs, you won't see all of them at once, and have to repeat this process a few times, until you've corrected all the entries and conf files (if multiple are affected). But after 7-8 or so of these (and confirming I'm not seeing the same approximate line numbers re-appear), I eventually cleared the bad entries out. It took a few minutes and I did not have to recreate my locations. I was able to update some proxy hosts afterwards, without issues. I haven't bothered to upgrade again, and will watch this issue until it's definitely fixed. |
@kachunkachunk The config is saved in the database. Once you override that _hsts_map.conf the variable that is used in the vhosts is no longer set. |
Upgrading to 2.11.2 solved the problem for me. No more "offline" when using "custom locations": https://github.com/NginxProxyManager/nginx-proxy-manager/releases/tag/v2.11.2 |
the mentionen in this link is for "OAuth2/OpenID Provider" only, this entrys dont need a "Custom Nginx Configuration" ... an app with websocket like audiobookshelf and authentik proxy provider will not work cause of this "map not allowed here" in the "Custom Nginx Configuration" ... and its not fixed in 2.11.2 ... i use unraid with latest nginx proxy manager version ... |
Just updated to ver 2.11.2 but the problem persist with Authentik proxy provider. There are news about the fix? |
fwiw, I wound up just switching to the |
I had this issue with Nginx & Authetix because authentik template for Nginx is trying to map a header in the wrong place. Create http_top.conf in data/nginx/custom (create custom folder in data/nginx/ if it doesn't exist) Add following code to the file:
restart nginx remove the lines from top of authentik Nginx template that have this code
Update the line: To |
Still having this issue. Is it Authentik or is it NPM to blame? |
I'm on 2.11.3 and I was still having issues with the map error listed in this issue. I followed the instructions provided here #3474 (comment) and that resolved my issue with Authentik. It now works properly. |
This has worked for me too. Thanks. Hope fix will be implemented in next NPM |
I've faced this exact same issue, having tried some of the solutions above to no avail.. I found the following to work well: SOLUTION:
After adding the reverse proxy, open it's respective config file
After the port you can add your desired path as shown below:
:) Hope this helps someone. |
Checklist
jc21/nginx-proxy-manager:latest
docker image?Describe the bug
After updating NPM ( docker compose pull && docker compose up -d) everything was OK until i edited a host.
After that the host started failing. After some debug i found a entry in /var/log/nginx/error.log stating
"map not allowed here"
I managed to find the map entry in the middle of the conf and it's this:
This is suffixed on each of my custom locations for that host.
I edited the
_hsts_map.conf
to comment them and the error was solved, but this won't survive a docker restart.Nginx Proxy Manager Version
v2.11.0 © 2024 jc21.com.
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: