From a1fd42c17b2731a5de4d525e52bb31e2bcf0f65e Mon Sep 17 00:00:00 2001 From: Sergei Poljanski Date: Fri, 4 Aug 2023 23:49:12 +0300 Subject: [PATCH] revert --- sites-available/asxp.io | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/sites-available/asxp.io b/sites-available/asxp.io index a4f91f8..01fe62d 100644 --- a/sites-available/asxp.io +++ b/sites-available/asxp.io @@ -24,23 +24,4 @@ server { ssl_certificate_key /etc/letsencrypt/live/asxp.io/privkey.pem; include /etc/letsencrypt/options-ssl-nginx.conf; ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; -} - -server { - - listen 80; - listen [::]:80; - server_name asxp.io www.asxp.io; - - if ($host = http://$host$request_uri) { - return 301 https://$host$request_uri; - } - - if ($host = http://www.$host$request_uri) { - return 301 https://$host$request_uri; - } - - location / { - try_files $uri $uri/ =404; - } -} \ No newline at end of file +} \ No newline at end of file