0
At the moment, the domino https://meudominio.com is working, but I can’t redirect http for https using the Let’s Encrypt.
I’m following this tutorial: Link
Below is my configuration:
server {
listen 80;
listen 443 ssl;
server_name meudominio.com www.meudominio.com;
ssl_certificate /etc/letsencrypt/live/meudominio.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/meudominio.com/privkey.pem;
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
root /home/ubuntu/project/user;
}
location / {
include proxy_params;
proxy_pass http://unix:/home/ubuntu/project/user/meudominio.sock;
}
}
server {
listen 80;
server_name meudominio.com;
return 301 https://$host$request_uri;
}
Why use two blocks
server
with the same door?– Valdeir Psr