Skip to content

NGINX 502 Bad-Gateway 1.12.2 #3581

@Shahi-Paneer

Description

@Shahi-Paneer

Hi,

code-server was working perfectly fine until a few weeks ago it suddenly stopped working.

Here is my nginx config:

 events {

}
http {
server {
  listen 8081 ssl;
  listen [::]:8081 ssl;
    ssl_certificate     /var/cpanel/ssl/apache_tls/liemcomputing.ca/combined;
    ssl_certificate_key /var/cpanel/ssl/apache_tls/liemcomputing.ca/combined;
    ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers         HIGH:!aNULL:!MD5;



  server_name liemcomputing.ca;
  location / {
     proxy_pass http://localhost:8080/;
     proxy_set_header Host $host;
     proxy_set_header Upgrade $http_upgrade;
     proxy_set_header Connection upgrade;
     proxy_set_header Accept-Encoding gzip;
  }
}
} 

Whenever I try to access it I see this:

Capture

I have also received this error:

2021/06/02 22:48:38 [error] 11113#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client:[insert ip here] , server: liemcomputing.ca, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8080/", host: "liemcomputing.ca:8081"

I am using Centos Version 7.

Any help would be appreciated

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions