luci-0.9: merge r5655
This commit is contained in:
parent
a32d60c3fb
commit
e235c7cc60
3 changed files with 6 additions and 6 deletions
|
@ -42,6 +42,6 @@ function factory(server, config)
|
|||
vhost:set_handler(v, handler)
|
||||
end
|
||||
else
|
||||
vhost:set_handler(config.virtual, handler)
|
||||
vhost:set_handler(config.virtual or "", handler)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -60,10 +60,10 @@ function factory(server, config)
|
|||
end
|
||||
else
|
||||
mypath = config.virtual
|
||||
vhost:set_handler(config.virtual, handler)
|
||||
vhost:set_handler(config.virtual or "", handler)
|
||||
end
|
||||
|
||||
if config.home then
|
||||
vhost.default = mypath
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -27,5 +27,5 @@ function factory(server, config)
|
|||
end
|
||||
|
||||
local handler = catchall.Redirect(config.name, config.physical)
|
||||
vhost:set_handler(config.virtual, handler)
|
||||
end
|
||||
vhost:set_handler(config.virtual or "", handler)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue