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