httpd-wiki-changes mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Httpd Wiki] Update of "RailsLoader" by noodl
Date Wed, 14 Jan 2009 09:04:51 GMT
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>
- }}}
- 

Mime
View raw message