question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is 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:closed
  • Created 8 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
danielfdickinsoncommented, Dec 10, 2016

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.

1reaction
Pietia10commented, Dec 29, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found