views:

238

answers:

2

I am trying to deploy a Rails application on Ubuntu 9.04 using Passenger.

As far as I can see, I have everything configured correctly; however when I point my browser at my domain, all I see is the index of the app's public directory.

My hunch is that Passenger is not starting up - at the bottom of just-plain-folks.co.uk there's no reference to Passenger at all. There's nothing interesting in the log files.

This is my config:

/etc/apache2/mods-enabled/passenger.conf

<IfModule passenger_module>
   PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.9
   PassengerRuby /usr/bin/ruby1.8
</IfModule>

/etc/apache2/mods-enabled/passenger.load

LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.9/ext/apache2/mod_passenger.so

/etc/apache2/sites-enabled/just-plain-folks.co.uk

<VirtualHost *:80>
    ServerAdmin [email protected]
    ServerName just-plain-folks.co.uk
    ServerAlias www.just-plain-folks.co.uk
    DocumentRoot /srv/www/just-plain-folks.co.uk/public_html/
    ErrorLog /srv/www/just-plain-folks.co.uk/logs/error.log
    CustomLog /srv/www/just-plain-folks.co.uk/logs/access.log combined
</VirtualHost>

/srv/www/just-plain-folks.co.uk/public_html/ is a simlink to the public directory of my application


If there's anything else that might be useful in diagnosing this, let me know. Any help is much appreciated!

A: 

(Updated: I missed the fact that you're trying to serve from the docroot)

Try turning off MultiViews

<VirtualHost *:80>

  ...

  <Directory /srv/www/just-plain-folks.co.uk/public_html>
      Allow from all
      Options -MultiViews
  </Directory>

</VirtualHost>
BryanH
This still gives the same result - but thanks for the suggestion.
grifaton
I've now added that, and I still get the same results. But thanks again!
grifaton
+2  A: 

Try ditching the symlink and pointing directly as public. I believe passenger is a little magic in this area as to how it detects the rails app.

Even if the symlink source was called public, I suspect it would still be looking for a rails_root in /srv/www/just-plain-folks.co.uk/.

cwninja
Thank you so much! You've no idea how much hair I've torn out over this.
grifaton