Reverse proxy and 502 bad gateway

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


I'm sucessfully accessing a server/site behind my reverse proxy with the following URL

But the following URL gives a 502 Bad Gateway
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; }

server {
   listen 80;
   listen [::]:80;
   listen 443 ssl;
   listen 4443 ssl;
   listen [::]:4443 ssl;
   listen [::]:443 ssl;
   server_name server_name;
   proxy_ssl_verify off;

   location / {
        try_files $uri @proxy;
        proxy_ssl_verify        off;
        access_log      /var/log/nginx/;
        error_log       /var/log/nginx/;

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list