502 неисправных шлюза nginx/ 1.18.0 (Ubuntu)

#vue.js #nginx #tcp #nuxt.js #digital-ocean

#vue.js #nginx #tcp #nuxt.js #цифровой океан

Вопрос:

Я занимаюсь этой проблемой уже много недель и надеюсь, что на этом все закончится. Я создал droplet и загрузил свой nuxt js(универсальный) в каталог с именем /var/www/chautarisaccos.com/nuxt, а ниже приведена конфигурация, которую я сделал в файле /etc/nginx/sites-available/default

 server {
        listen 80 default_server;
        listen [::]:80 default_server;

        root /var/www/chautarisaccos.com/nuxt/.nuxt/dist/server;

        
        index index.html index.htm index.nginx-debian.html;
        server_name chautarisaccos.com www.chautarisaccos.com;

        location / {
                proxy_pass http://localhost:3000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
        }
}
  

когда я гото http://chautarisaccos.com Я получаю ошибку 502 bad gateway. В чем может быть причина, пожалуйста, помогите мне.
Ниже приведен результат при запуске «netstat -plant»

 (Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      -                   
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      -                   
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -                   
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      -                   
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      -                   
tcp        0      0 157.245.102.182:22      103.225.244.4:25321     ESTABLISHED -                   
tcp        0      0 157.245.102.182:80      94.182.176.136:8527     ESTABLISHED -                   
tcp        0      0 157.245.102.182:22      103.225.244.4:25327     ESTABLISHED -                   
tcp6       0      0 :::80                   :::*                    LISTEN      -                   
tcp6       0      0 :::22                   :::*                    LISTEN      -                   
tcp6       0      0 :::443                  :::*                    LISTEN      -                   
tcp6       0      0 :::33060                :::*                    LISTEN      - 
  

Комментарии:

1. просто чтобы убедиться, что у вас есть ссылка на сайты с поддержкой?

2. @Estradiaz да, есть