apache2
Passenger Apache Settings example
Submitted by Sam Rose on Tue, 11/10/2009 - 23:19<VirtualHost *:80> ServerName domain.com DocumentRoot /home/path/to/railsapp/public Options +FollowSymLinks +ExecCGI RailsEnv development </VirtualHost>
setup mongrel clusters and apache proxy serving via virtual host debian lenny
Submitted by Sam Rose on Wed, 10/07/2009 - 23:51Assuming you have already installed Rails/Ruby
sudo gem install mongrel
sudo gem install mongrel_cluster
Then run
mongrel_rails cluster::configure -e production -p 3000 -N 2 -c /home/yourdir/yourapp -a 127.0.0.1
"production" assumes you have configured your app for production. Otherwise run "development"
You may need to open ports in iptables.
Output should be:
Writing configuration file to config/mongrel_cluster.yml.
To start mongrel cluster, cd to the rails app, then:
How to create a site redirect on a sub-directory using .htaccess and PHP
Submitted by Sam Rose on Wed, 01/07/2009 - 03:27I needed to make the old http://socialsynergyweb.org/oardc domain point to the new home at http://localfoodsystems.org (and include all sub-directory listings under /oardc). Plus, it was desired to place a message letting people know about a timed redirect, and to "update your book marks".
So, here is what I did:
The .htaccess file:
RedirectMatch 301 ^/oardc/.*$ http://socialsynergyweb.org/lfs/index.php
This simply finds everything that is under http://socialsynergyweb.org/oardc and redirects to http://socialsynergyweb.org/lfs/index.php
