I followed Passenger’s and the book’s instruction and appended the following code to my apache config.
# Passenger LoadModule passenger_module /home/louisr/.rvm/gems/ruby-1.9.2-p320/gems/passenger-3.0.19/ext/apache2/mod_passenger.so PassengerRoot /home/louisr/.rvm/gems/ruby-1.9.2-p320/gems/passenger-3.0.19 PassengerRuby /home/louisr/.rvm/wrappers/ruby-1.9.2-p320/ruby <VirtualHost *:80> ServerName www.louisr.com # !!! Be sure to point DocumentRoot to 'public'! DocumentRoot /home/louisr/codes/depot/public <Directory /home/louisr/codes/depot/public> # This relaxes Apache security settings. AllowOverride all # MultiViews must be turned off. Options -MultiViews Order allow,deny Allow from all </Directory> </VirtualHost>
When I restart apache, I got @apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName@
Ok, maybe I misconfigured something. But when I open 127.0.1.1 in my browser, I onlye got :
This is the default web page for this server.
The web server software is running but no content has been added, yet.
Any idea what I did wrong?