net::ERR_CONNECTION_REFUSED . How to correctly configure Nginx with

MarcoI nginx-forum at
Fri Jan 31 15:49:26 UTC 2020

This is the output of the "Network" tab :
" Either a http redirect response header, or some response body content,
invites the browser to try to access localhost" :
as far as I see and understand, the requested URL, or the URL to which the
initial request is redirected, from the initial , is: 
Request URL: https://localhost/sockjs-node/info?t=1580484448072

I ask you... am I right or wrong in thinking that this proxy_pass address
has to be changed?

server {
    listen 443 ssl http2 default_server;

    ssl_certificate /etc/ssl/certs/chained.pem;
    ssl_certificate_key /etc/ssl/private/domain.key;
    ssl_session_timeout 5m;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
    ssl_prefer_server_ciphers on;
    ssl_session_cache shared:SSL:50m;
    ssl_dhparam /etc/ssl/certs/dhparam.pem;
    #ssl_stapling on;
    #ssl_stapling_verify on;

    access_log /var/log/nginx/ggcworld-access.log combined;

    add_header Strict-Transport-Security "max-age=31536000";
    location = /favicon.ico { access_log off; log_not_found off; }
    location / {
        proxy_pass;   //
<------------------------------------------------- !!!!
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";

And how to change it?

Posted at Nginx Forum:,286850,286883#msg-286883

More information about the nginx mailing list