try server_name instead of public host