def server_setup(control, err_mon, server, doc_factory)
folder = server.document.find('/')[0]
for attrs in @list
params = MountParams.new(attrs, @factory)
name = params.name
args = params.args
path = params.path
mask = params.mask
host = params.virtual_host
begin
document = doc_factory.doc_build(name, args)
if (host) then
host += ':' + server.port.to_s
folder.virtual_mount(host, document, path, mask)
else
folder.mount(document, path, mask)
end
rescue StandardError, ScriptError
err_mon.capture_document_error($!, name, args, path, mask, host)
server.err("error: not mounted #{name.inspect} document: (#{$!.class}) #{$!}")
end
end
nil
end