Added location block to handle redirects using x-forwarded-proto.