Automatique https and connexion refused


I got an ubuntu droplet today, installed my nodejs app, installed nginx so it run on direct ip instead of ip:3000, i bought a domain and changed the server_name to:

In the registar manager (1and1) i even see an image preview with my correct app.

I added the domain into networking for my droplet too.

But for some reason, going to the domain name give me a connexion refused and i see a https in the url, but i didnt installed any ssl certificate. Any idea what i could be missing ?

Thank you.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Anyway, fixed it by adding a ssl certificate but still curious about why i was automatically in https without having installing it.

To give more infos, direct ip is here: Wordking well but if i try access with the domain it redirect automatically to and dont work.

Here my nginx default:

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

	root /home/chris/webapp;


	location / {
		proxy_set_header X-Real-IP $remote_addr;
    		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    		proxy_set_header X-NginX-Proxy true;
    		proxy_pass http://localhost:3000;
    		proxy_set_header Host $http_host;
    		proxy_cache_bypass $http_upgrade;
    		proxy_redirect off;

And in digital ocean networking: