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 <cocopriestyu+github@gmail.com>
[ improve spacing ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
Tianshuai Gao authored and Christian Marangi committed 2026-10-25 13:44:30 +01:00
1 parent fa48a6a567
commit b781114455
1 file changed
+3
@@ -1,3 +1,6 @@
location = / {
return 302 /cgi-bin/luci/;
}
location /cgi-bin/luci {
index index.html;
include uwsgi_params;