luci-0.9: merge r5655

This commit is contained in:
Jo-Philipp Wich 2010-03-23 16:23:03 +00:00
parent a32d60c3fb
commit e235c7cc60
3 changed files with 6 additions and 6 deletions

View file

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

View file

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

View file

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