Using Phusion Passenger for this blog

November 28, 2008 Link to post  Permalink

I’ve just moved this blog onto an installation of Phusion Passenger. If you can’t see this post, then the DNS hasn’t caught up yet.

The installation instructions at the ModRails site are pretty good for setting the thing up, but there are some tricks.

On Ubuntu, the Apache configuration goes in a file in the /etc/apache/sites-enabled directory. The entire contents of that file for this blog is here. I needed the Directory section to allow access to the static files.

 1<VirtualHost *:80>
 2    ServerName
 3    DocumentRoot /srv/rails/craz8/current/public
 5    <Directory "/srv/rails/craz8/current/public">
 6      Options FollowSymLinks
 7      AllowOverride None
 8      Order allow,deny
 9      Allow from all
10    </Directory>
12    ErrorLog /var/log/apache2/craz8_blog_error.log
13    CustomLog /var/log/apache2/craz8_blog_access.log combined