take server port into account when checking server_name and loading of config