Tomcat WebDav禁用解决方法

tomcat*/conf/web.xml中,在web-app结束前增加如下配置

<security-constraint>
    <web-resource-collection>
        <url-pattern>/*</url-pattern>
        <http-method>DELETE</http-method>
        <http-method>PUT</http-method>
        <http-method>TRACE</http-method>
        <http-method>OPTIONS</http-method>
    </web-resource-collection>
    <auth-constraint>
    </auth-constraint>
</security-constraint>
<login-config>
    <auth-method>BASIC</auth-method>
</login-config>

 

重启tomcat

posted @ 2016-09-29 14:26  Alex~  阅读(2498)  评论(0编辑  收藏  举报