Answer the question
In order to leave comments, you need to log in
Why does the redirect from http to https not work?
vvvv
Answer the question
In order to leave comments, you need to log in
You have some completely extra if in the http block.
server {
listen 80;
server_name rockgame.ru;
location /.well-known/acme-challenge {
root /var/www/letsencrypt;
}
location / {
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