Installing Apache 2.2 with mod_rewrite and mod_proxy_balancer

As mentioned in my post, Configuring Apache to work with a Mongrel Cluster, you need an Apache installation with mod_rewrite and mod_proxy_balancer. Unfortunately on the Red Hat installation I was using the default installation is Apache 2.0 which does not have mod_proxy_balancer. When I tried to upgrade it using up2date I got some errors that seemed to indicate this install was not properly registered. I then tried using the Apache 2.2 install done by the tech guy but this install did not have the modules I needed.

Therefore it was time for me to do the install by myself. Fortunately it was not hard with the help of this article, Building Apache 2.2 plus the manual.

Here is what I did.

$ wget
$ tar xvfz httpd-2.2.8.tar.gz
$ cd httpd-2.2.8
$ ./configure --enable-rewrite=shared --enable-proxy=shared \
    --enable-proxy_balancer=shared --enable-proxy_http=shared
$ make
$ sudo make install
$ sudo /usr/local/apache2/bin/apachectl start

3 thoughts on “Installing Apache 2.2 with mod_rewrite and mod_proxy_balancer

  1. Pingback: betweenGo » mod_rails

  2. Hi ratul,

    I am not sure why there are no so files in the modules folder. When you do a build of Apache after configuring it the way I suggested then there should be .so files in your modules folder.

    I admit though I am not an Apache expert. Maybe you can ask on one of the Apache forums or mailing lists.

Leave a Reply

Your email address will not be published. Required fields are marked *