<= Home
Moved blog over to Apache Passenger in minutes
Posted about 3 months ago
I spent alot of time on a rather stupid issue when trying to get my blog to run under Debian, Apache and Passenger. After following the few lines of setup instructions from the site, I opened my browser and tried it out and received "Unexpected error in Passenger: Cannot spawn application" and "The spawn server has exited unexpectedly." errors in my apache log file. Heres the fix: I had had deployed my app to /var/www/my_rails_app, so I had configured the vhost to:
<VirtualHost *:80> ServerName www.theagiledeveloper.com DocumentRoot /var/www/my_rails_app RailsBaseURI /
but the directory needs to actually point at the public folder in my rails app
<VirtualHost *:80> ServerName www.theagiledeveloper.com DocumentRoot /var/www/my_rails_app/public RailsBaseURI /
once I had this everything went smooth. Here is the entire configuration:
<VirtualHost *:80> ServerName www.theagiledeveloper.com DocumentRoot /var/www/my_rails_app/public RailsBaseURI / #Serve up static filesOptions FollowSymLinks AllowOverride None Order allow,deny Allow from all ErrorLog /var/log/apache2/my_rails_app_errors_log CustomLog /var/log/apache2/my_rails_app_log combined </VirtualHost>