set application hosts.