Hello,
I have a mix of old and new Rails apps that I want to deploy with Passenger 5, but I'm having trouble getting it to work at all. I've started with one of my older sites that needs Ruby 1.8.7 and Rails 2.1.0. When I setup the vhost and try to connect to the application, I just get the index of the public directory. I have a deploy user that I have set rbenv up for and everything works via Webrick. I have installed the passenger gem, and ran passenger-install-apache2-module and Apache says the module is loaded.
Here's my vhost file for the application.
<VirtualHost *:80>
PassengerRuby /home/deploy/.rbenv/versions/1.8.7-p375/bin/ruby
# Relax Apache security settings
Allow from all
Options -MultiViews
# Uncomment this if you're on Apache > 2.4:
Require all granted
</Directory>
</VirtualHost>
I have tried running Apache both as the www-data user and deploy user, I have chown'd the directory to www-data:www-data and deploy:deploy, and I have added the www-data user to the deploy group so that the user should be able to use the deploy user's rbenv ruby, but all of this has been met with failure. Any ideas are greatly appreciated.