浏览代码

fix: v2.1.0

jonssonyan 2 年之前
父节点
当前提交
871e5f7f7d
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      install_script.sh

+ 5 - 5
install_script.sh

@@ -654,7 +654,7 @@ server {
 
     #error_page  404              /404.html;
     #497 http->https
-    error_page  497              https://\$host:${nginx_port}\$uri?\$args;
+    error_page  497              https://\$host:${nginx_port}\$request_uri;
 
     # redirect server error pages to the static page /50x.html
     #
@@ -679,7 +679,7 @@ server {
         index  index.html index.htm;
     }
 
-    error_page  497              http://\$host:${nginx_port}\$uri?\$args;
+    error_page  497              http://\$host:${nginx_port}\$request_uri;
 
     error_page   500 502 503 504  /50x.html;
     location = /50x.html {
@@ -998,7 +998,7 @@ server {
 
     #error_page  404              /404.html;
     #497 http->https
-    error_page  497              https://\$host:${trojan_panel_ui_port}\$uri?\$args;
+    error_page  497              https://\$host:${trojan_panel_ui_port}\$request_uri;
 
     # redirect server error pages to the static page /50x.html
     #
@@ -1027,7 +1027,7 @@ server {
         proxy_pass http://127.0.0.1:8081;
     }
 
-    error_page  497              http://\$host:${trojan_panel_ui_port}\$uri?\$args;
+    error_page  497              http://\$host:${trojan_panel_ui_port}\$request_uri;
 
     error_page   500 502 503 504  /50x.html;
     location = /50x.html {
@@ -1510,7 +1510,7 @@ update_trojan_panel_ui_port() {
     read -r -p "请输入Trojan Panel前端新端口(默认:8888): " trojan_panel_ui_port
     [[ -z "${trojan_panel_ui_port}" ]] && trojan_panel_ui_port="8888"
     sed -i "s/listen.*ssl;/listen       ${trojan_panel_ui_port} ssl;/g" ${UI_NGINX_CONFIG} &&
-      sed -i "s/https:\/\/\$host:.*\$uri?\$args/https:\/\/\$host:${trojan_panel_ui_port}\$uri?\$args/g" ${UI_NGINX_CONFIG} &&
+      sed -i "s/https:\/\/\$host:.*\$request_uri/https:\/\/\$host:${trojan_panel_ui_port}\$request_uri/g" ${UI_NGINX_CONFIG} &&
       docker restart trojan-panel-ui
 
     if [[ "$?" == "0" ]]; then