Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question