We want to disable at global level because our configuration consist of
so many server blocks
The TRACE method is always rejected with 405 since nginx 0.5.17.
To disable other methods like OPTIONS (which currently isn’t
handled by nginx, but may be proxy_pass’ed somewhere else) you
have to use either rewrite checks like in the article above or the
“limit_expect” directive (http://nginx.org/r/limit_except). This
isn’t possible at global level, though you may use the “include”
directive (http://nginx.org/r/include) to include common
configuration block into all servers.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.