You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wiki-changes@httpd.apache.org by Apache Wiki <wi...@apache.org> on 2009/01/14 10:04:51 UTC
[Httpd Wiki] Update of "RailsLoader" by noodl
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.
The following page has been changed by noodl:
http://wiki.apache.org/httpd/RailsLoader
The comment on the change is:
Irrelevant now we have mod_passenger
------------------------------------------------------------------------------
+ deleted
- ## page was renamed from Recipes/RailsLoader
- ## page was renamed from Recipies/RailsLoader
- = Wildcard Rails app loader =
- In this setup, *.example.com is mapped to any rails app in a directory. So foo.example.com maps to a rails app in /www/dev/foo. It also lets apache handle requests for static files.
-
- {{{
- ## Generic Rails app loader
- <VirtualHost *:80>
- ServerAlias *.example.com
- AddHandler fcgid-script fcgi
- <Location />
- Options ExecCGI FollowSymlinks
- AllowOverride None
- </Location>
- RewriteEngine On
- RewriteCond %{HTTP_HOST} (.+)\.example\.com
- RewriteCond /www/dev/%1/public/%{REQUEST_URI} -f
- RewriteRule ^/(.*)$ /www/dev/%1/public/$1 [L]
- RewriteCond %{HTTP_HOST} (.+)\.example\.com
- RewriteRule ^/(.*)$ /www/dev/%1/public/dispatch.fcgi/$1
- </VirtualHost>
- }}}
-