Https connection problem

Posted May 23, 2017 45.1k views

I have a problem:
When I surf my site through http everything is OK, but when I start using it through https, it throws and error: Failed to load resource: net::ERRCONNECTIONCLOSED. I need to transport some cookie files so it will work and I want to do it with https.
Best regards,

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.

Submit an Answer
2 answers

Hi @FrzSeemsGood

You need a domain to activate https.

You can follow this tutorial (even though it’s for Ubuntu) for setting up Nginx as a reverse proxy to Node.js:

And then follow this tutorial to setup Let’s Encrypt to enable https in Nginx:

by Mitchell Anicas
In this tutorial, we will show you how to use Let's Encrypt to obtain a free SSL certificate and use it with Nginx on Ubuntu 16.04. We will also show you how to automatically renew your SSL certificate. If you're running a different web server, simply follow your web server's documentation to learn how to use the certificate with your setup.

I have a domain, dunno why its showing ip instead of my domain. Will give it a try, thx:)