I have a RoR web app that I'm trying to serve up with Passenger on Apache. The weird thing is that I can access the web app if I use Passenger Standalone, but I can't seem to access the web app using Apache with the Passenger module.
The passenger module appears to be running as evidenced by the fact that I can start Apache with no errors and that Passenger-status returns the following:
----------- General information -----------
max = 6
count = 0
active = 0
inactive = 0
Waiting on global queue: 0
----------- Application groups -----------
When I try to access the web app I get a listing of the public folder directory.
Here is my virtual hosts file:
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /home/smith/www/dashboard/public
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/smith/www/dashboard/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
I have the following at the end of my apache2.conf file:
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger 3.0.11/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11
PassengerRuby /usr/bin/ruby1.8
I am pulling my hair out trying to figure this out. Would appreciate some help with this.
Thanks.