betweenGo

Installing Apache 2.2 with mod_rewrite and mod_proxy_balancer

by on Mar.31, 2008, under HTTP Server, Ruby on Rails

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 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


Share

Related posts:

  1. Configuring Apache to work with a Mongrel Cluster
  2. Installing Ruby on Rails on Red Hat Enterprise Linux 4
  3. mod_rewrite to bypass security
  4. Apache not starting because of Skype
  5. mod_rails

:

2 Comments for this entry

  • ratul

    I have installed apache following your
    instruction. but in modules folder
    there is no so file.

    What can i do?

  • Frank Kim

    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.

1 Trackback or Pingback for this entry

  • betweenGo » mod_rails

    [...] 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 [...]

Leave a Reply

 

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!