解决方案,在nginx配置文件中加入一行文字,重启nginx即可:
error_page 405 = $uri;
示例:
location / {
root /home/users/www/;
index index.html index.htm;
# Ajoutez simplement ceci :
error_page 405 = $uri;
}
参考 https://admin-serv.net/blog/669/nginx-fixer-les-erreurs-405-not-allowed-lors-des-posts-sur-fichiers-statiques/