Mon 31 Mar 2008
Installing Apache 2.2 with mod_rewrite and mod_proxy_balancer
Posted by Frank Kim under HTTP Server , Ruby on RailsAs 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 http://apache.mirror99.com/httpd/httpd-2.2.8.tar.gz
$ 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
April 1st, 2008 at 8:02 pm
[...] I talked about configuring a production Ruby on Rails applications using a Mongrel cluster with an Apache front end…. Now though a new Apache module was released called mod_rails which obviates the need for a Mongrel [...]
April 16th, 2008 at 11:08 pm
I have installed apache following your
instruction. but in modules folder
there is no so file.
What can i do?
April 17th, 2008 at 6:30 am
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.