[Mongrel] Can't seem to get rewrite rules to work with Apache

Scott Walter sw-ng at scottwalter.com
Sat Mar 24 22:30:14 EDT 2007


I'm struggling to get an Apache rewrite rule to work.   I have a  
simple rule that for a request to "a.html" will be sent to "b.html".   
However the requests for "a.html" are always sent to my Rails apps.   
Here is my  Apache configuration:

<Directory /u/apps/simplelog_2.0.2/public/>
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex index.php index.html
ServerName scottwalter.com
DocumentRoot /u/apps/simplelog_2.0.2/public
SuexecUserGroup webadmin webadmin
RewriteEngine On
RewriteRule ^a\.html$ b.html
ProxyPass /
ProxyPassReverse /
ProxyPreserveHost on
ServerAlias "www.scottwalter.com"
ServerAdmin "support at scottwalter.com"
CustomLog "/u/apps/simplelog_2.0.2/log/access_log" "combined"
ErrorLog "/u/apps/simplelog_2.0.2/log/error_log"

Does anyone have any ideas? 

More information about the Mongrel-users mailing list