-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Showing
2 changed files
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|