Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

Tiago Bastos http://tiago.zusee.com/blog

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

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 :

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


All resources that don't exist in your html directory will be requested ( using proxy) from mongrel.
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS