httpd-wiki-changes mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Httpd Wiki] Update of "Recipies/RailsLoader" by pctony
Date Mon, 16 Oct 2006 22:40:13 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 pctony:

The comment on the change is:
copied from ebp-moin

New page:
= Wildcard Rails app loader =

In this setup, * is mapped to any rails app in a directory. So
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 *
 AddHandler fcgid-script fcgi
 <Location />
  Options ExecCGI FollowSymlinks
  AllowOverride None
 RewriteEngine On
 RewriteCond %{HTTP_HOST} (.+)\
 RewriteCond /www/dev/%1/public/%{REQUEST_URI} -f
 RewriteRule ^(.*)$ /www/dev/%1/public/$1 [L]
 RewriteCond %{HTTP_HOST} (.+)\
 RewriteRule ^(.*)$ /www/dev/%1/public/dispatch.fcgi/$1

View raw message