Monday, July 4, 2011

[Rails] Filtering out some requests before they hit Rails

I get lots of stuff in my logs like:
ActionController::UnknownHttpMethod (PROPFIND, accepted HTTP methods
are get, head, put, post, delete, and options):

I'd like to reject this stuff before it hits rails and clogs passenger
and then the error log.

How can I make Apache reject some urls/requests before passing them on
to Rails.

I'm sure I can stick something in .htaccess with mod_rewrite or
something but I dont want to do it by trail and error if there is a
good recipe somewhere.

It wont get all of them but I get hundreds of attempts at /
manager.html and /phppgadmin and stuff like that that fills the rails
log and obscures more valuable log entries.

Cheers
George

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate