added reverse proxy path_depth support