Skip to content

Commit

Permalink
nginx: 301 the "/" path to "/cgi-bin/luci/"
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
VergilGao committed Jan 10, 2025
1 parent 7d75219 commit 3c14117
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions net/nginx/files-luci-support/luci.locations
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
location =/ {
return 301 /cgi-bin/luci/;
}

location /cgi-bin/luci {
index index.html;
include uwsgi_params;
Expand Down

0 comments on commit 3c14117

Please sign in to comment.