【发布时间】:2013-05-30 12:29:45
【问题描述】:
我正在使用需要PUT HTTP 服务器上的文件的应用程序。我正在使用 Nginx 作为服务器,但返回了 405 Not Allowed 错误。以下是使用 cURL 进行测试的示例:
curl -X PUT \
-H 'Content-Type: application/x-mpegurl' \
-d /Volumes/Extra/playlist.m3u8 http://xyz.com
以及我从 Nginx 得到的结果:
<html>
<head><title>405 Not Allowed</title></head>
<body bgcolor="white">
<center><h1>405 Not Allowed</h1></center>
<hr><center>nginx/1.1.19</center>
</body>
</html>
我需要做什么才能允许PUT?
任何线索都会很棒!
【问题讨论】: