/stats with Ruby on Rails


I’ve noticed that for my sites which run ROR applications, /stats is unavailable (throws a 404.) Is there a way to get around this?

Putting some additional rewrite rules in the .htaccess file should help.

Something like this has worked in the past:

RewriteCond %{REQUEST_URI} ^/stats/(.)$ [OR]
RewriteCond %{REQUEST_URI} ^/failed_auth.html$
RewriteRule ^.
$ - [L]

Putting that near the top of the .htaccess will tell Apache to not pass requests for /stats along to ruby on rails.

  • Dallas
  • DreamHost Head Honcho/Founder