[root@elk-server meeting-order]# curl -X POST https://test.abc.com/
<html>
<head><title>405 Not Allowed</title></head>
<body bgcolor="white">
<center><h1>405 Not Allowed</h1></center>
<hr><center>nginx</center>
</body>
</html>
[root@elk-server meeting-order]#

nginx配置加上如下代码

location / {
            error_page 405 =200 /index.html;
            try_files $uri $uri/ /index.html;
        }

再次发送POST请求,返回的和GET请求一样了

 

相关文章:

  • 2022-12-23
  • 2021-08-27
  • 2022-12-23
  • 2021-07-23
  • 2021-11-23
  • 2021-11-23
  • 2021-04-24
  • 2021-03-26
猜你喜欢
  • 2021-10-27
  • 2022-02-07
  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案