Friday, June 01, 2007

Ruby On Rails With Apache and mod_proxy using .htaccess

If you want your rails app in the same apache html directory, use a .htaccess like this :

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) http://localhost:3000/$1 [P]

No comments :