405 not allowed 问题排查
生活随笔
收集整理的這篇文章主要介紹了
405 not allowed 问题排查
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
不只一種原因,可能是java代碼返回405,也可能是nginx配置有問題。
nginx中的配置問題
去掉如下配置問題解決:
location /api/user/query {root html;index index.html index.htm;try_files $uri $uri/ @userRoute; }nginx中已有的其他配置:
location /api {root html;index index.html index.htm;try_files $uri $uri/ @apiRoute; } location @apiRoute {rewrite ^/(.*) /api/index.html break; }總結
以上是生活随笔為你收集整理的405 not allowed 问题排查的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Web服务http日志收集
- 下一篇: 泛微工作流程管理解决方案(转载)