Question

why is my site saying "connection refused" ??

Posted May 26, 2016 21.5k views
VPN

hello, me and some friends are making a site for csgo ,
but it’s not working.. If you look in the site console you will see that it says
“connection refused” and then my VPS ip, what should i do?

2 comments
  • First, I would make sure that the web server on your droplet is running by attempting to reach the IP address directly in your browser.

    I would also recommend checking your web server’s log files:

    For apache on ubuntu this would be in /var/log/apache2/
    For nginx on ubuntu this would be /var/log/nginx/

    If you can provide some additional details on what software you are running and any error messages being recorded we’ll best be able to help you resolve this.

  • Hi i am also facing the same error

    Please find the logs for nginx

    2019/02/12 16:10:50 [error] 14191#14191: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 49.205.146.81, server: _, request: “GET / HTTP/1.1”, upstream: “http://127.0.0.1:8080/”, host: “157.230.142.215”
    2019/02/12 16:40:26 [error] 14191#14191: *5 connect() failed (111: Connection refused) while connecting to upstream, client: 49.205.146.81, server: _, request: “GET / HTTP/1.1”, upstream: “http://127.0.0.1:8080/”, host: “157.230.142.215”
    2019/02/12 16:46:41 [error] 14191#14191: *12 connect() failed (111: Connection refused) while connecting to upstream, client: 49.205.146.81, server: _, request: “GET / HTTP/1.1”, upstream: “http://127.0.0.1:8080/”, host: “157.230.142.215”

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

1 answer

This question was answered by @ryanpq:

First, I would make sure that the web server on your droplet is running by attempting to reach the IP address directly in your browser.

I would also recommend checking your web server’s log files:

For apache on ubuntu this would be in /var/log/apache2/
For nginx on ubuntu this would be /var/log/nginx/

If you can provide some additional details on what software you are running and any error messages being recorded we’ll best be able to help you resolve this.

View the original comment

Submit an Answer