Change logic to infer SPN to use the SERVER_URL insted of SERVER_NAME as latter not correct when proxied