luci on nginx
See original GitHub issueIs it possible to make luci work on nginx? luci.on.nginx page is missing on OpenWRT website, and a few configs I have found don’t work (OpenWRT 14.07) and return 404 Not Found for 192.168.1.1/cgi-bin/luci
Configs I have tried:
location /cgi-bin/luci {
fastcgi_split_path_info ^(/cgi-bin/luci)(/.+)$;
fastcgi_pass unix:/var/run/luafcgid.sock;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME /usr/lib/lua/luci/sgi/fcgi.lua;
include fastcgi_params;
client_max_body_size 16M;
}
location /cgi-bin/luci {
fastcgi_split_path_info ^(/cgi-bin/luci)(/.+)$;
fastcgi_pass unix:/tmp/fcgi-cgi.sock;
fastcgi_param PATH_INFO $fastcgi_path_info;
set $script_name '/cgi-bin/luci';
fastcgi_param SCRIPT_FILENAME $document_root$script_name;
include fastcgi_params;
add_header Cache-Control no-store;
}
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
[OpenWrt Wiki] Nginx webserver
Nginx webserver Nginx is a high-performance HTTP/S server with other ... There are ways to run LuCI with Nginx but that is not...
Read more >luci-ssl-nginx package versions - Repology
List of package versions for project luci-ssl-nginx in all repositories.
Read more >Luci-ssl-nginx Download (IPK) - pkgs.org
Luci -ssl-nginx Download for Linux (ipk) ; luci-ssl-nginx latest versions: ; luci-ssl-nginx architectures: all ; luci-ssl-nginx linux packages: ipk.
Read more >Image Layer Details - luci/nginx:0.3 - Docker Hub
luci /nginx:0.3. Digest:sha256:fef90f85b0cc8b6e639f9c03dbbfee9cd09a12ef806fa8c2920690a268ae152a. OS/ARCH. amd64. Compressed Size. 77.01 MB. Last pushed.
Read more >Removed Luci-nginx and can't access router ui from ... - Reddit
Hello all! Like the title says, I removed Luci-nginx by accident and now I can't connect to my router's webui. How do I...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’d suggest you prefer using uhttpd on a different port than nginx and keep the admin UI separate from you nginx instance. There is no advantage to nginx as your UI server.
I think we really need to set luci as default for serving luci as uhttpd take like 5-10 seconds to load any page(100% CPU in top for just one user!), nginx is lightweight and takes minimal resources cpu/ram/disk . I think first we need to solve this https://github.com/openwrt/packages/issues/2408 so nginx can serve old plain cgi scripts.