Report this

What is the reason for this report?

Out of the blue I'm getting ERR_CONNECTION_REFUSED when I try to reach my site

Posted on September 1, 2016

Hi guys,

I have nginx running on my ubuntu 14.04 droplet, with one website at the moment. It was online and accessible until today, since I’m now getting a ERR_CONNECTION_REFUSED when I type in the url. It doesn’t work on other devices/networks as well, but I can ping it…

Which lets me to believe there is suddenly something wrong with my configuration (although I haven’t changed anything lately). Within my /etc/nginx/sites-enabled/default file my settings are as followed:

server  {
       listen 80;
       server_name paulvanmotman.com www.paulvanmotman.com;
       rewrite ^ https://www.$server_name$request_uri? permanent;
}

server {
	listen 443 ssl;
	
	root /var/www/paulvanMotman;
	index index.html index.htm;
	
	location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ {
		expires 168h;
	}	
	
	ssl on;
    ssl_certificate /etc/nginx/ssl/ssl-bundle.crt;
    ssl_certificate_key /etc/nginx/ssl/server.key;

	server_name paulvanmotman.com www.paulvanmotman.com;
	location / {
		try_files $uri $uri/ =404;
	}
}

If anyone could help me out I would greatly appreciate!

Kind regards,

Paul

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.