BI behing nginx and proxy_pass problem 502 Bad Gateway

alitick

n3wb
Feb 28, 2026
12
1
Prague
Hi all,

I have Blue Iris running behind Nginx in a private LAN.

Here is my current Nginx configuration (Ubuntu 24.04 lts):

NGINX:
server {
    listen 80;
    server_name example.com;
    return 301 https://$host$request_uri;
}

server {
    listen 443 ssl http2;
    server_name example.com;

    ssl_certificate     /etc/letsencrypt/live/example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;

    location / {
        proxy_pass http://10.77.50.10:81;
    }
}


Version 6.0.3.8 – works fine through the proxy
Version 6.0.4.4 – returns 502 Bad Gateway with the same setup

bi0.png
bi1.png


A logged-in user sees endless errors in UI3:
2304-4096-max.jpg

Other:


Additional details:
BI is on a Windows 11 machine at 10.77.50.10
Nginx is on a Ubuntu server at 10.77.50.25
Windows Firewall has an allow rule for blueiris.exe on port 81
The network uses a load balancer with multiple WAN IPs, which periodically change

Has anyone experienced similar issues with BI behind a reverse proxy, especially in a setup with changing external IPs?

Is there a known workaround or setting to fix this intermittent 502?

Thanks in advance!


P.S.
I wasted a lot of time, rolled back from the latest version to 6.0.2.10 and everything worked perfectly.
 
Last edited:
Ive had alot of this same type of thing going on too. UI3 with red boxes on the right filled with error messages, however nothing in any logs.. Been keeping my eye on this forum and it appears to be fairly widespread, so I have been patient.. Reverse proxy not working, complete reinstall, now I have an issue where UI3 gets stuck in a loop loading camera list no matter which version of BI or machine i try from. But it even happens via a direct LAN connection avoiding any proxy. Something is wonked up and I cant figure it out.. Ive even tried going all the way back to a version 5 BI. Stuck. No cams will load via UI3.