phpUnderControl is a customization of CruiseControl.
For those wanting to run CruiseControl behind an Apache webserver without configuring mod_jk or the like, this short how-to is just right.
Installing phpUnderControl / CruiseControl
This article is not about installing phpUnderControl or CruiseControl. For refernces see http://www.phpundercontrol.org/ or http://cruisecontrol.sourceforge.net/.
Configuring Apache as a proxy
So we are considering you have your phpUnderControl / CruiseControl instance up and running at http://localhost:8080/. We are also considering you have an instance of the Apache webserver up and running.
First we'll need to enable the proxy module of Apache. Consult the apache manual on how to enable the module in your instance of the Apache webserver. Now edit your Apache vHost or httpd.conf configuration.
You need to make sure that mod_proxy.so and mod_proxy_http.so do point to the right location on your harddisk.
Fixing URLs
Proxying already works with this configuration, but unfortunately clicking any link in your installation of phpUnderControl / CruiseControl would point to the direct installation of the instance. This is where mod_jk would come into play. But as we're just wanting a quick and easy resolution for runnning phpUnderControl / CruiseControl behind the Apache webserver, we'll be solving this issue quite easily:
Make sure to enable the ext_filter module. Now edit your Apache vHost or httpd.conf configuration again:
Conclusion
Just restart your Apache webserver and your instance of phpUnderControl / CruiseControl should be running perfectly well behind your Apache webserver.



Recent Comments