/stats with Ruby on Rails


#1

Hi…

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?


#2

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