Apache as reverse-proxy for tomcat (running jenkins)

view story

http://serverfault.com – I have set up apache to work as a reverse proxy to tomcat that is running jenkins-CI. I can access the site from outside fine, except when I log in to jenkins, it redirects to my lan-hostname, and it of course it fails outside my network. After that I can manually type the original address to the browser, and it it will work fine until I have to log in again. I wonder if this is a problem in jenkins, or in my apache/tomcat proxy setup. Jenkins also reports on the management page that my proxy setup is not right, but does not tell any more. Apache VirtualHost configuration: <VirtualHost (HowTos)