From 95a5529d74d8635fedd9c27fb9012a177cdd8b23 Mon Sep 17 00:00:00 2001 From: Tianshuai Gao Date: Mon, 6 Jul 2026 10:58:07 +0800 Subject: [PATCH] nginx: 302 the "/" path to "/cgi-bin/luci/" This change will prevent the blank "LuCI - Lua Configuration Interface" screen from being displayed for the first time when accessing luci via a url like 192.168.1.1 Signed-off-by: Tianshuai Gao --- net/nginx/files-luci-support/luci.locations | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/nginx/files-luci-support/luci.locations b/net/nginx/files-luci-support/luci.locations index 374ee5d9fc7e4..0e36387848e23 100644 --- a/net/nginx/files-luci-support/luci.locations +++ b/net/nginx/files-luci-support/luci.locations @@ -1,3 +1,6 @@ +location =/ { + return 302 /cgi-bin/luci/; +} location /cgi-bin/luci { index index.html; include uwsgi_params;