def server_setup(control, err_mon, server, doc_factory)
for mount_info in @list
name = mount_info['document']
args = mount_info['arguments']
path = mount_info['mount_path']
mask = mount_info['mount_mask']
host = mount_info['virtual_host']
begin
document = doc_factory.doc_build(name, args)
if (host) then
host += ':' + server.port.to_s
server.virtual_mount(host, document, path, mask)
else
server.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