Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache 403执行PUT请求时_Apache_Ubuntu - Fatal编程技术网

Apache 403执行PUT请求时

Apache 403执行PUT请求时,apache,ubuntu,Apache,Ubuntu,我对apache配置非常陌生,正在尝试了解更多信息。当我发出PUT请求时,我得到了403-禁止的,但是GET到同一个URL就可以了 是否需要启用某些功能以允许PUT请求 我使用的是Apache和PHP如果您使用的是Apache2.4.x,则错误或缺少“Require”指令可能会导致403 在virtualhost配置的块或.htaccess文件中添加以下行: Require all granted 有关“Require”语法的详细信息,请参阅:

我对apache配置非常陌生,正在尝试了解更多信息。当我发出
PUT
请求时,我得到了
403-禁止的
,但是
GET
到同一个URL就可以了

是否需要启用某些功能以允许
PUT
请求


我使用的是Apache和PHP

如果您使用的是Apache2.4.x,则错误或缺少“Require”指令可能会导致403

在virtualhost配置的
块或
.htaccess
文件中添加以下行:

Require all granted
有关“Require”语法的详细信息,请参阅: