From 3c1411787ad1c0fe652c2dc7629611428fb09441 Mon Sep 17 00:00:00 2001 From: Tianshuai Gao Date: Fri, 10 Jan 2025 09:46:35 +0800 Subject: [PATCH] nginx: 301 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/nginx/files-luci-support/luci.locations b/net/nginx/files-luci-support/luci.locations index 374ee5d9fc7e41..f69917d289206d 100644 --- a/net/nginx/files-luci-support/luci.locations +++ b/net/nginx/files-luci-support/luci.locations @@ -1,3 +1,7 @@ +location =/ { + return 301 /cgi-bin/luci/; +} + location /cgi-bin/luci { index index.html; include uwsgi_params;