support running under reverse proxy w/ different document root