end
end
+ local mypath
if type(config.virtual) == "table" then
for _, v in ipairs(config.virtual) do
+ mypath = mypath or v
vhost:set_handler(v, handler)
end
else
+ mypath = config.virtual
vhost:set_handler(config.virtual, handler)
end
+
+ if config.home then
+ vhost.default = mypath
+ end
end
\ No newline at end of file
-- Call URI part
request.env.PATH_INFO = uri
+ if self.default and uri == "/" then
+ return 302, {Location = self.default}
+ end
+
for k, h in pairs(self.handlers) do
if #k > hlen then
if uri == k or (uri:sub(1, #k) == k and uri:byte(#k+1) == sc) then
option physical ''
list virtual /luci
option domain ''
+ option home 1
list exec ':lo'
list exec ':br-lan'
list exec 'root'
option 'virtual' '/'
option 'physical' ':80/luci/splash'
-
\ No newline at end of file
config LuciWebPublisher luciweb
option name 'LuCI Webapplication'
option physical ''
+ option home 1
list virtual /luci
list virtual /cgi-bin/luci
option domain ''