vhost:set_handler(v, handler)
end
else
- vhost:set_handler(config.virtual, handler)
+ vhost:set_handler(config.virtual or "", handler)
end
-end
\ No newline at end of file
+end
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
\ No newline at end of file
+end
end
local handler = catchall.Redirect(config.name, config.physical)
- vhost:set_handler(config.virtual, handler)
-end
\ No newline at end of file
+ vhost:set_handler(config.virtual or "", handler)
+end