Welcome! Log In Create A New Profile

Advanced

Nginx reverse proxy setup zabbix white site

Posted by dsommer42 
Nginx reverse proxy setup zabbix white site
January 22, 2021 05:25AM
Hello,

i try to reach my zabbix server behind a nginx reverse proxy. Login Screen is loading, but after login i get a blank white site.

nginx reverse proxy setup: External address: https://mydomain.com/monitor

location /monitor/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://ip/monitor/;
}

Setup Nginx Webserver (simple setup to test reverse proxy),
/usr/share/zabbix is linked to /var/www/html/monitor


server {
listen 80;
server_name ip;
root /var/www/html;
...
location ~ \.php$ {
include snippets/fastcgi-php.conf;

# With php-fpm (or other unix sockets):
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
}
internal access with login is ok: http://ip/monitor.

I am grateful for any help. Thanks
Re: Nginx reverse proxy setup zabbix white site
January 22, 2021 06:59AM
location /monitor/ {
proxy_pass http://ip/monitor/;

Becomes: http://ip/monitor/monitor

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: Nginx reverse proxy setup zabbix white site
January 25, 2021 02:42AM
I followed this documentation:

https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/

and /monitor/ ist replaced with http://ip/monitor/ thats correct, i get the login page and not 404.

But after login i have only a white page, that's my problem.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 59
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready