[[email protected] 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> [[email protected]-server meeting-order]#
nginx配置加上如下代码
location / { error_page 405 =200 /index.html; try_files $uri $uri/ /index.html; }
再次发送POST请求,返回的和GET请求一样了