tomcat nginx 作为资源服务器,设置允许put del

2017-07-28  本文已影响48人  社会我大爷

Nginx:
修改Nginx.conf文件

location / {
root html;
dav_methods PUT; //添加这条就ok
index index.html index.htm;
}

tomcat:
修改web.xml文件
<servlet>
<servlet-name>default</servlet-name>
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>


<init-param>
<param-name>readonly</param-name>
<param-value>false</param-value>
</init-param>

    <init-param>
        <param-name>debug</param-name>
        <param-value>0</param-value>
    </init-param>
    <init-param>
        <param-name>listings</param-name>
        <param-value>false</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
</servlet>
上一篇 下一篇

猜你喜欢

热点阅读