Nginx error CONNECTION REFUSED

Connection Refused error is due to Nginx not started on port 80.  In CWP by default, it will not generate the nginx virtual host configuration files.  You need to manually add these files.

Create a file named xxxxx.conf in /etc/nginx/conf.d/ folder and update the following contents.  Replace xxxxx with your Server IP address.

server {
   listen       xxxxx:80 default;
   server_name  _;
   #access_log  /var/log/nginx/xxxxx.log main;
   location / {
       proxy_pass  http://xxxxx:8181;
  }
}

Note : replace all instances xxxxx to your server ip address.

 

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

502 Bad Gateway cwpsrv

in most cases, running the following command from SSH will solve this issue. sh...