在Apache中正确使用LimitExcept

时间:2011-10-09 22:31:05

标签: ruby-on-rails apache passenger

我的apache2.conf中有一个LimitExcept子句,如下所示

目的是在请求进一步发布之前拒绝PROPFIND等,并在Rails中填写我的应用程序日志(使用乘客)

不幸的是我似乎没有正确理解该指令,因为我仍然在Rails日志中收到如下消息:

Message PROPFIND, accepted HTTP methods are get, head, put, post, delete, and options

位置/附件 行动
控制器
查询
方法PROPFIND SSL错误 代理Microsoft-WebDAV-MiniRedir / 6.1.7601

使用堆栈跟踪如下:

/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/request.rb:32:in`__unmemoized_request_method'

/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/memoizable.rb:57:in'request_method'

/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/request.rb:40:in`method'

/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/routing/route_set.rb:433:in“extract_request_environment”

/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/routing/route_set.rb:386:in“识别”

/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:182:in“handle_request”

/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:110:in`dispatch_unlocked'

/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:123:in`dispatch'

/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in`synchronize'

/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in`dispatch'

的/ usr 等等......

任何帮助表示感谢。

乔治

0 个答案:

没有答案