From cff587a6d28108c68ffc6df45eb7e280096b67ac Mon Sep 17 00:00:00 2001 From: suyuan <175338101@qq.com> Date: Tue, 11 Oct 2022 21:42:16 +0800 Subject: [PATCH] Revert "fix nginx 88" This reverts commit 9881569c52c8bd1754aad06e2f1c1f7be6dcc1aa. --- nginx/files-luci-support/luci_nginx.conf | 5 ++--- nginx/files-luci-support/luci_nginx_ssl.conf | 9 ++++----- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/nginx/files-luci-support/luci_nginx.conf b/nginx/files-luci-support/luci_nginx.conf index 2c02b48fd..31af664a2 100755 --- a/nginx/files-luci-support/luci_nginx.conf +++ b/nginx/files-luci-support/luci_nginx.conf @@ -32,12 +32,11 @@ http { gzip_comp_level 1; gzip_proxied any; - index login.html; root /www; server { - listen 88 default_server; - listen [::]:88 default_server; + listen 80 default_server; + listen [::]:80 default_server; server_name localhost; location ~* .(jpg|jpeg|png|gif|ico|css|js)$ { diff --git a/nginx/files-luci-support/luci_nginx_ssl.conf b/nginx/files-luci-support/luci_nginx_ssl.conf index c35a90d03..318453b54 100755 --- a/nginx/files-luci-support/luci_nginx_ssl.conf +++ b/nginx/files-luci-support/luci_nginx_ssl.conf @@ -32,19 +32,18 @@ http { gzip_comp_level 1; gzip_proxied any; - index login.html; root /www; server { - listen 88 default_server; - listen [::]:88 default_server; + listen 80 default_server; + listen [::]:80 default_server; server_name _; return 301 https://$host$request_uri; } server { - listen 433 ssl default_server; - listen [::]:433 ssl default_server; + listen 443 ssl default_server; + listen [::]:443 ssl default_server; server_name localhost; ssl_protocols TLSv1 TLSv1.1 TLSv1.2;