def server_setup(control, server)
for attrs in @list
alias_path = attrs['alias_path']
orig_path = attrs['orig_path']
host = attrs['virtual_host']
begin
if (host) then
host += ':' + server.port.to_s
server.set_virtual_alias(host, alias_path, orig_path)
else
server.set_alias(alias_path, orig_path)
end
rescue
server.err("error: unavaiable alias: (#{$!.class}) #{$!}")
control.alias_errors.push({ :alias_path => alias_path,
:orig_path => orig_path,
:virtual_host => host,
:exception => $!
})
end
end
nil
end