Update nginx_luci.patch

This commit is contained in:
有種 2023-04-09 01:48:32 +08:00 committed by GitHub
parent f91551bfb6
commit 46c34fc600
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 12 deletions

View File

@ -15,18 +15,6 @@
uwsgi_param SERVER_ADDR $server_addr;
uwsgi_modifier1 9;
uwsgi_pass unix:////var/run/luci-cgi_io.socket;
@@ -15,3 +17,11 @@ location ~ /cgi-bin/cgi-(backup|download|upload|exec) {
location /luci-static {
error_log stderr crit;
}
+
+location = / {
+ return 301 $scheme://$http_host/cgi-bin/luci/;
+}
+
+location = /luci/ {
+ return 301 $scheme://$http_host/cgi-bin/luci/;
+}
--- a/nginx/files/nginx.init
+++ b/nginx/files/nginx.init