From af4b8f9c8387e060b4454a284a73f3382f52cd2f Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Tue, 5 Jul 2016 22:52:29 +0300 Subject: [PATCH] fix: nginx conf for letsencrypt auto renew --- nginx.conf | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/nginx.conf b/nginx.conf index 326bc9ee..abc7de45 100644 --- a/nginx.conf +++ b/nginx.conf @@ -32,12 +32,10 @@ server { location ^~ /.well-known/acme-challenge { root /home/hoster/www/art.shburg.org/public; } -} -server { - listen 80; - server_name art.shlisselburg.org; - return 301 https://art.shlisselburg.org$request_uri; + location / { + return 301 https://art.shlisselburg.org$request_uri; + } } map $http_upgrade $connection_upgrade {