V
V
Vladimir Revyakin2016-07-05 11:56:07
Nginx
Vladimir Revyakin, 2016-07-05 11:56:07

Redirect from HTTP to HTTPS NGINX?

There is a site to which I connected an ssl certificate, if I register site.io in the browser, it does not automatically transfer me to https://site.io , but gives an error.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Burov, 2016-07-05
@jonimuesli

server {
        listen site.io:80;
        server_name site.io;
        return 301 https://$server_name$request_uri;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question