Hi All
(Please excuse the cross posting)
I've Jenkins and TeamCity running on two separate VMs within my home network. I have another (physical) box running, among other things, Apache 2 (on Ubuntu server) and I have port 80 forwarded from my router to it. I've configured a number of virtual hosts on Apache, which work fine, and have proxies to two other web applications (subsonic & Nexus) running on Tomcat on the same box. What I want to do is add proxies for Jenkins and Tomcat. This is my configuration:
<VirtualHost *:80> ... ProxyRequests Off ProxyPreserveHost On <Proxy *> Order allow,deny Allow from all </Proxy> ProxyPass /subsonic/ http://localhost:8080/subsonic/ ProxyPassReverse /subsonic/ http://localhost:8080/subsonic/
ProxyPass /nexus/ http://localhost:8080/nexus/ ProxyPassReverse /nexus/ http://localhost:8080/nexus/
ProxyPass /teamcity/ http://192.168.1.x1:8080/ ProxyPassReverse /teamcity/ http://192.168.1.x1:8080/
ProxyPass /jenkins/ http://192.168.1.15/ ProxyPassReverse /jenkins/ http://192.168.1.x2/ </VirtualHost>
I think the Apache 2 configuration is fine and that the problems reside in the TeamCity and Jenkins configurations. I access them like this:
http://<mydomain>/teamcity/ http://<mydomain>/jenkins/
In the case of TeamCity, it tries to redirect me to login.html, but looses the /teamcity/ part from the URL. In the case of Jenkins, the first obvious issue is that the CSS isn't referenced properly and some of the links don't work.
I've done the obvious stuff like update the server URL for both TeamCity and Jenkins (just like I had to with Nexus). I've restarted everything, even the boxes/VMs. And Iv'e googled. I'm still stuck. Does anyone know what I'm doing wrong?