1. Create the symlink from the Rails project's public folder to a location under your document root. I used the ~/Sites folder as my document root. In it, I made the symlink to my Rails project's public folder, like:
cd ~/Sites ln -s /Users/hg/Developer/Rails/railsproj1/public ./railsproj1
2. Configure the Apache conf file. I edited /etc/apache2/users/hg.conf: (I've bolded the parts worth noting.)
<VirtualHost *:80>
ServerName localhost
DocumentRoot /Users/hg/Sites
<Directory /Users/hg/Sites>
AllowOverride All
Options Indexes FollowSymLinks MultiViews
Order allow,deny
Allow from all
</Directory>
RailsBaseURI /railsproj1
RailsEnv development
</VirtualHost>
3. So far, this won't work, although Phusion claims it does. Next add this line (courtesy of Ashchan's blog) in your Rails project's environment.rb file:
config.action_controller.relative_url_root = "/railsproj1"
Restart Apache and you should be good to go. Let me know if you have anything to add.