I have jenkins running inside tomcat on my server:
http://davez0r.com:8080/jenkins
I'd like apache to point a subdomain to this instead:
http://ci.davez0r.com
There are directions for doing this:
- https://wiki.jenkins-ci.org/display/JENKINS/Running+Jenkins+behind+Apache
- https://serverfault.com/a/140161
So I set up the subdomain with my provider and then added a virtual host in httpd.conf:
<VirtualHost *:80>
ServerName ci.davez0r.com
ProxyPass / http://localhost:8080/jenkins
ProxyPassReverse / http://localhost:8080/jenkins
ProxyRequests Off
<Proxy http://localhost:8080/jenkins*>
Order deny,allow
Allow from all
</Proxy>
</VirtualHost>
This is below my other virtual host entry that I'm using to rewrite my mediawiki URLs.
I then restarted everything.
The problem is that now when I go to the desired URL, I get redirected to:
http://ci.davez0r.com/jenkins
At which point I'm presented with a blank page.
I don't know who's even doing the redirecting. Is it Jenkins, Apache, Tomcat...?
Versions:
- RHEL 6.2
- Apache 2.2.15
- Coyote 1.1