title: Ruby on rails application shows files index instead of the app
body: <p>I would like to deploy a Ruby on Rails application on the web, and for that matter I have used/deployed the following tools:</p>
  
  <ol>
  <li>Capistrano, to deploy the app files to the target location</li>
  <li>The Phusion Passenger module for Apache</li>
  </ol>
  
  <p>I have enabled the Passenger module through <code>sudo a2enmod passenger</code>. I have also installed the passenger gem through the gem installer, and added it to the Gemfile of my rails app.
  I have then created an Apache virtual host for the app 'myapp'.</p>
  
  <p><strong>myapp.conf</strong></p>
  
  <pre><code>  Alias /myapp /var/www/myapp/current/public
    &lt;VirtualHost *:80&gt;
      DocumentRoot /var/www/myapp/current/public
      SetEnv SECRET_KEY_BASE 592da***************************************
     &lt;Directory /var/www/myapp/current/public&gt;
       PassengerEnabled on
       PassengerResolveSymlinksInDocumentRoot on
       PassengerAppRoot /var/www/myapp/current
       PassengerAppType rack
       PassengerStartupFile config.ru
       Allow from all
       Options -MultiViews
       Require all granted
     &lt;/Directory&gt;    
   &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>The virtual host work, but when I access the URL in a web browser, it shows the files index in /var/www/myapp/current/public instead of the actual app. The reason for this seems to be that passenger is not started, but I can't figure out why. I have tried to tweak the myapp.conf file to help apache and passenger detect the app, but without success.</p>
  
  <p>Could anyone help me fix this? Thanks in advance.</p>
  
  <p>Additional info: the app is deployed on a Raspberry Pi 3 with Raspbian Jessie as OS.</p>