added HTTP_X_FORWARDED_PROTO to URL