Post date: 2009/03/03 1:06:35
Download Apache2 from http://httpd.apache.org/
At source directory
./configure --prefix=/home/moriyama/tools/apache2 --enable-dav --enable-so --enable-rewrite=shared --enable-ssl=shared --with-mpm=worker
make & make install
Because localhost:80 does not work due to permission denial, changed port to 8080 in httpd.conf
gem install passenger
execute passenger installation command below (rehash if you are using csh)
passenger-install-apache2-module
Caution: do not forget to add /home/moriyama/tools/apache2 in your PATH
rehash if you are using csh before invoking the installation command
Add three settings below which are shown by the installer
LoadModule passenger_module /home/moriyama/tools/lib/ruby/gems/1.8/gems/passenger-2.0.6/ext/apache2/mod_passenger.so
PassengerRoot /home/moriyama/tools/lib/ruby/gems/1.8/gems/passenger-2.0.6
PassengerRuby /home/moriyama/tools/bin/ruby
Add the virtual host setting below in httpd.conf
<VirtualHost *:3080>
ServerName anagix
DocumentRoot /home/moriyama/your_rails_app/public
</VirtualHost>
Comment out 'Deny from all' in httpd.conf
apachectl start
apachectl stop