【发布时间】:2017-11-26 03:51:48
【问题描述】:
我正在用 PHP 编写一个 RESTful 应用程序,并为 nginx 启用了 DELETE、PUT 请求。
location / {
root html;
index index.php index.html index.htm;
dav_methods PUT DELETE;
}
当我使用 DELETE 方法执行 REST 请求时,我想在 index.php 中处理 - nginx 删除了 html 文件夹。
告诉 nginx 将 DELETE 请求传递给我的 index.php 的正确方法是什么?
【问题讨论】: