intertwingly

It’s just data

modrails: easy (if you are root)


Took a look modrails.  First impressions: easy to set up; not sure what the target market is for this.

Here’s the setup for Ubuntu Hardy Heron:

sudo gem install passenger
sudo apt-get install build-essential apache2-mpm-prefork apache2-prefork-dev
sudo apache2ctl restart
sudo passenger-install-apache2-module

Note that at this time passenger requires prefork.  worker is not currently supported.

You have two choices when deploying: deploying to a virtual host’s root, or deploying to a sub URI.  Both require modifying httpd.conf, having update access to the document root and restarting Apache.

At this point, I start to wonder what the point is.  There already are plenty of options available to people with root access to their servers.  What I would think would be most useful is something that targeted Apache shared hosts.  I should be able to put something in my /home/rubys/public_html/.htaccess (or /home/rubys/Sites/.htaccess on a Mac) to say that the depot directory is a Rails application, and access it as http://localhost/~rubys/depot/.  But instead I get

[Mon Apr 28 10:53:04 2008] [alert] [client 127.0.0.1] /home/rubys/public_html/.htaccess: RailsBaseURI not allowed here