I am using an application which needs to PUT
a file on a HTTP server. I am using Nginx as the server but getting a 405 Not Allowed
error back. Here is an example of a test with cURL:
curl -X PUT
-H 'Content-Type: application/x-mpegurl'
-d /Volumes/Extra/playlist.m3u8 http://xyz.com
And what I get back from 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>
What do I need to do to allow the PUT
?
Any clues would be awesome!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…