Nginx默认不允许静态文件向服务器发送POST请求,报错如下:
405 Method Not Allowed
The requested method is not allowed for the URL. Sorry for the inconvenience.
Please report this message and include the following information to us. Thank you very much!
解决方案:
在nginx.conf的server节点里加入
error_page 405 =200 $uri;
然后./sbin/nginx -s reload 即可。
评论