Kali ini saya mencoba menuliskan langkah-langkah menjalankan aplikasi Ruby On Rails menggunakan Apache web server. Sebagaimana kita tahu, secara bawaannya aplikasi Ruby On Rail dijalankan diatas web server bawaan mereka yaitu WEBrick, atau web server lainnya seperti Mongrel dan Thin seperti yang biasa saya lakukan.
The Apache 2 module was successfully installed.
Please edit your Apache configuration file, and add these lines:
LoadModule passenger_module /home/dwijonarko/.rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.24/buildout/apache2/mod_passenger.so
PassengerRoot /home/dwijonarko/.rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.24
PassengerDefaultRuby /home/dwijonarko/.rvm/wrappers/ruby-2.0.0-p247/ruby
After you restart Apache, you are ready to deploy any number of Ruby on Rails
applications on Apache, without any further Ruby on Rails-specific
configuration!
Press ENTER to continue.[/bash]
<VirtualHost *:80>
ServerName rails_project.dev
ServerAlias www.rails_project.dev
# !!! Be sure to point DocumentRoot to ‘public’!
DocumentRoot /data/Projects/rails_project/public
#Configuration rails environtment : development ; production
RailsEnv development
<Directory /data/Projects/rails_project/public>
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
# This relaxes Apache security settings.
AllowOverride all
# MultiViews must be turned off.
Options -MultiViews
</Directory>
</VirtualHost>
[/bash]