uhttpd: add default LuCI ucode prefix
[openwrt/staging/jow.git] / package / network / services / uhttpd / files / uhttpd.config
index 40ce67fd010f75c100a1573137fcd2faea241f4c..a79f9921eaed943312823a0028152ff86ec3ebe1 100644 (file)
@@ -57,6 +57,14 @@ config uhttpd main
        # matches have precedence over the CGI prefix.
        list lua_prefix         "/cgi-bin/luci=/usr/lib/lua/luci/sgi/uhttpd.lua"
 
+       # List of prefix->ucode handler mappings.
+       # Any request to an URL beneath the prefix
+       # will be dispatched to the associated ucode
+       # handler script. Ucode support is disabled when
+       # no handler mappings are specified. Ucode prefix
+       # matches have precedence over the CGI prefix.
+       list ucode_prefix       "/cgi-bin/luci=/usr/share/ucode/luci/uhttpd.uc"
+
        # Specify the ubus-rpc prefix and socket path.
 #      option ubus_prefix      /ubus
 #      option ubus_socket      /var/run/ubus/ubus.sock