add support for reverse-proxy which supply ORIG_PATHs