I am using an application that needs a PUT file on an HTTP server. I am using Nginx as a server, but getting a 405 Not Allowed error. Here is an example test with cURL:
curl -X PUT \ -H 'Content-Type: application/x-mpegurl' \ -d /Volumes/Extra/playlist.m3u8 http://xyz.com
And that I will return 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 enable PUT ?
Any tips would be awesome!
source share