Added HTTP_X_FORWARDED_SSL support