diff --git a/nginx/conf/nginx.conf b/nginx/conf/nginx.conf index aae2014..39f9190 100644 --- a/nginx/conf/nginx.conf +++ b/nginx/conf/nginx.conf @@ -5,24 +5,27 @@ server { server_name foro.kiwi; server_tokens off; - location /.well-known/acme-challenge { + location /.well-known/acme-challenge/ { root /var/www/certbot; } location / { - return 301 https://foro.kiwi$request_uri; + root /usr/share/nginx/html; } } server { - listen 443 ssl; - listen [::]:443 ssl; - http2 on; + listen 443 default_server ssl http2; + listen [::]:443 ssl http2; server_name foro.kiwi; ssl_certificate /etc/nginx/ssl/live/foro.kiwi/fullchain.pem; ssl_certificate_key /etc/nginx/ssl/live/foro.kiwi/privkey.pem; + + location /.well-known/ { + root /var/www; + } location / { root /usr/share/nginx/html; @@ -53,4 +56,4 @@ server { return 204; } } -} +} \ No newline at end of file