Introducing the --base switch to modify the base URL.
authorMalte S. Stretz <mss@apache.org>
Wed, 1 Sep 2010 11:31:06 +0000 (13:31 +0200)
committerEmil Mikulic <emikulic@gmail.com>
Sat, 28 May 2011 10:10:53 +0000 (20:10 +1000)
commit2a9f7d48789fbf932fd96125d8ee9f49b45b09ac
tree529488420e73d64d50ef4796b6d64b0561cfcafd
parent89e759b5b308c4a640b32c503e752ceac4ad9ba2
Introducing the --base switch to modify the base URL.

The --base option (defaulting to "/") essentially configures the
base_url in http.c which was introduced previously.  Now darkstat works
without too much magic behind a reverse proxy.

My mod_proxy config changed from
        ProxyPass /darkstat http://localhost:666
        <Location /darkstat/>
                ProxyPassReverse /
                SetOutputFilter proxy-html
                ProxyHTMLURLMap / /darkstat/
                RequestHeader unset Accept-Encoding
        </Location>
        Redirect permanent /graphs.xml /darkstat/graphs.xml
to the simpler
        ProxyPass /darkstat/ http://localhost:666/darkstat/
        ProxyPassReverse /darkstat/ http://localhost:666/darkstat/
(the ProxyPassReverse isn't even needed since darkstat doesn't generate
any Location headers).
darkstat.8.in
darkstat.c
http.c