I tried to run Bitnami ReviewBoard behind an apache2 reverse proxy (The apache2 from the Bitnami Tomcat stack in fact) and found that when I view source in my browser, there are some urls that incorrectly reference the backend. I'm not familiar with Django and can't figure out what I need to do to make it use the right hostname when it is reverse proxied. Configuring the server url within ReviewBoard's own settings web interface didn't help.
Bitnami Tomcat stack apache2 runs on port 80
Bitnami ReviewBoard apache2 runs on port 8000
Accessing http://myhostname:8000/reviewboard works fine (all urls in source are consistent).
Relevant parts of the Tomcat stack apache2 configuration (tomcatstack-7.0.63-1/apache2/conf/bitnami/bitnami-apps-prefix.conf):
# Not shown: I also excluded /reviewboard from ProxyPass'ing to Tomcat's AJP
I tried turning ProxyPreserveHost On which did change the hostname for the problematic urls, but it still kept the port 8000 so that's not a solution.
What am I missing? I'm guessing I need to do something to tell Django that its proper domain name is myhostname, so it doesn't just use localhost:8000 as requested by the reverse proxy server.
Or alternately, if there is a better solution to make available both Bitnami ReviewBoard and Bitnami Tomcat on port 80 from the same machine, I'm open to ideas.