[GH-ISSUE #411] Zabbix custom location not working #347

Closed
opened 2026-02-26 06:32:29 +03:00 by kerem · 9 comments
Owner

Originally created by @styxadmin on GitHub (May 15, 2020).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/411

Hi, I cant get the custom location for Zabbix to work.

On my current nginx configuration it is set up like this:

#reverse proxy
location /zabbix/ {
proxy_pass http://192.168.100.12/zabbix/;

I am trying to replicate that on the UI of Nginx Proxy Manager:

image

image

image

image

As you can see it does not proerly direct to https://zabbix.mydomain.com/zabbix/

image

Originally created by @styxadmin on GitHub (May 15, 2020). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/411 Hi, I cant get the custom location for Zabbix to work. On my current nginx configuration it is set up like this: #reverse proxy location /zabbix/ { proxy_pass http://192.168.100.12/zabbix/; I am trying to replicate that on the UI of Nginx Proxy Manager: ![image](https://user-images.githubusercontent.com/50232595/82043265-95802a00-96ab-11ea-931c-733e95dae251.png) ![image](https://user-images.githubusercontent.com/50232595/82043294-a4ff7300-96ab-11ea-9f03-5b5147f33bc9.png) ![image](https://user-images.githubusercontent.com/50232595/82043319-b21c6200-96ab-11ea-931d-0a5381736192.png) ![image](https://user-images.githubusercontent.com/50232595/82043381-c8c2b900-96ab-11ea-9a3d-09768b43a57e.png) As you can see it does not proerly direct to https://zabbix.mydomain.com/zabbix/ ![image](https://user-images.githubusercontent.com/50232595/82043619-31aa3100-96ac-11ea-80b5-58715d23829c.png)
kerem 2026-02-26 06:32:29 +03:00
Author
Owner

@jc21 commented on GitHub (May 20, 2020):

I think you need to specify 192.168.100.12/zabbix as the Forward Hostname in Custom Location section.

<!-- gh-comment-id:631422577 --> @jc21 commented on GitHub (May 20, 2020): I think you need to specify `192.168.100.12/zabbix` as the Forward Hostname in Custom Location section.
Author
Owner

@ghost commented on GitHub (Jun 10, 2020):

That doesn't work - I have the same problem

<!-- gh-comment-id:642211936 --> @ghost commented on GitHub (Jun 10, 2020): That doesn't work - I have the same problem
Author
Owner

@BassT23 commented on GitHub (Jun 15, 2023):

Under "Custom Location":
custom location: /
Forward hostname / IP: <IP>/zabbix/

Than the Problem you will have, like me; Login only work as guest, ...

<!-- gh-comment-id:1593091865 --> @BassT23 commented on GitHub (Jun 15, 2023): Under "Custom Location": custom location: ``/`` Forward hostname / IP: ``<IP>/zabbix/`` Than the Problem you will have, like me; Login only work as guest, ...
Author
Owner

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

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

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

@lilp69 commented on GitHub (Sep 13, 2024):

@BassT23 I try your solution, and I've the connection page. When I try to connect with any user (mine, admin, guest), I've this message : https://i.imgur.com/2neIywg.png

<!-- gh-comment-id:2348886842 --> @lilp69 commented on GitHub (Sep 13, 2024): @BassT23 I try your solution, and I've the connection page. When I try to connect with any user (mine, admin, guest), I've this message : https://i.imgur.com/2neIywg.png
Author
Owner

@Foxhunter-de commented on GitHub (Dec 19, 2024):

Solution for all who are struggeling:

Don't use the custom location tab. Go to advanced tab, enter this:

location / {
proxy_cookie_path /zabbix /;
proxy_pass http://ip-of-your-zabbix:80/zabbix/;
}

Yes, there is a spce in the cookie path after zabbix - that is important. Hope that helps :)

<!-- gh-comment-id:2552624178 --> @Foxhunter-de commented on GitHub (Dec 19, 2024): Solution for all who are struggeling: Don't use the custom location tab. Go to advanced tab, enter this: location / { proxy_cookie_path /zabbix /; proxy_pass http://**ip-of-your-zabbix**:80/zabbix/; } Yes, there is a spce in the cookie path after zabbix - that is important. Hope that helps :)
Author
Owner

@ZuLzgit commented on GitHub (Jan 24, 2025):

@PCE-Consulting Thanks i love you

<!-- gh-comment-id:2612792732 --> @ZuLzgit commented on GitHub (Jan 24, 2025): @PCE-Consulting Thanks i love you
Author
Owner

@Foxhunter-de commented on GitHub (Jan 25, 2025):

Haha, glad it works for you :)

<!-- gh-comment-id:2613900158 --> @Foxhunter-de commented on GitHub (Jan 25, 2025): Haha, glad it works for you :)
Author
Owner

@github-actions[bot] commented on GitHub (Aug 22, 2025):

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

<!-- gh-comment-id:3212795039 --> @github-actions[bot] commented on GitHub (Aug 22, 2025): Issue is now considered stale. If you want to keep it open, please comment :+1:
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#347
No description provided.