By crashbdx
Hello,
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:
ns1.digitalocean.com ns2.digitalocean.com ns3.digitalocean.com
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.
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!
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: http://178.128.101.145/ Wordking well but if i try access with the domain sica-web.app it redirect automatically to https://sica-web.app and dont work.
Here my nginx default:
server {
listen 80 default_server;
listen [::]:80 default_server;
root /home/chris/webapp;
server_name sica-web.app www.sica-web.app;
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:

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.