Reverse proxy and 502 bad gateway

Mik J mikydevel at yahoo.fr
Sat May 4 21:28:06 UTC 2019


Hello,

I'm sucessfully accessing a server/site behind my reverse proxy with the following URL
https://app.mydomain.org/screens/dashboard.html#/MainDashboard

But the following URL gives a 502 Bad Gateway
https://app.mydomain.org/screens/webui/resource/swccopolldata.json
I don't understand why beyond resource it sends me an error 502.
Does anyone has an idea about what's wrong ?

My Nginx config looks like this

upstream backend-app { server 192.168.0.2:443; }

server {
   listen 80;
   listen [::]:80;
   listen 443 ssl;
   listen 4443 ssl;
   listen [::]:4443 ssl;
   listen [::]:443 ssl;
   server_name server_name app.mydomain.org;
...
   proxy_ssl_verify off;

   location / {
        try_files $uri @proxy;
        proxy_ssl_verify        off;
        access_log      /var/log/nginx/app.mydomain.org.access.log;
        error_log       /var/log/nginx/app.mydomain.org.error.log;
    }

    location @proxy {
            proxy_pass https://backend-app;
    }
}


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20190504/bd9df507/attachment.html>


More information about the nginx mailing list