V
V
vikholodov2018-01-12 13:11:07
Nginx
vikholodov, 2018-01-12 13:11:07

How to setup https on nginx via free cloudflare?

Connected the domain, turned on SSL. http://domain works, but https://domain doesn't.
This is my first encounter with nginx, I had a hard time deploying a project on CentOS, it remains only to figure it out...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sar0ka8, 2018-01-12
@vikholodov

More or less like this

server {
        listen 443 ssl;
        server_name domain.name;
        root /path//to/folder; 
        index list_of_indexes;
        ssl_certificate /path/to/sert;
        ssl_certificate_key /path/to/key;
        }

More precisely for cloudflare here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question