PUT & access_by_lua_file
itcod
nginx-forum at nginx.us
Fri Apr 17 15:12:42 UTC 2015
проверил Access-Control-Allow-Methods
- проблема сохранилась nginx разрешает заливать в себя сколько влезет....
BitKinex - послал PROPFIND
nginx - ответил Access-Control-Allow-Methods: GET
BitKinex - игнорировал хидер и инициировал PUT
nginx - разрешил PUT и получил файл....
[lua] блокировал его размещение HTTP/1.1 405 Not Allowed
:(
Resolving host name "dav.example.com" ...
Connecting ( home.itcod.com => ip: 10.1.1.1, port: 80 )
Connected (10.1.1.1:80)
<<< PROPFIND / HTTP/1.1
<<< Host: home.itcod.com
<<< User-Agent: BitKinex/3.2.3
<<< Accept: */*
<<< Pragma: no-cache
<<< Cache-Control: no-cache
<<< Depth: 1
<<< Content-Length: 220
<<< Content-Type: text/xml
<<< Authorization: Basic блаблабла==
>>> HTTP/1.1 207 Multi-Status
>>> Server: nginx/0.8.54
>>> Date: Fri, 17 Apr 2015 15:01:13 GMT
>>> Content-Type: application/octet-stream
>>> Transfer-Encoding: chunked
>>> Connection: keep-alive
>>> Access-Control-Allow-Methods: GET
<<< PUT /IMG_20150414_184225.jpg HTTP/1.1
<<< Host: home.itcod.com
<<< User-Agent: BitKinex/3.2.3
<<< Accept: */*
<<< Pragma: no-cache
<<< Cache-Control: no-cache
<<< Content-Length: 696983
<<< Content-Type: application/octet-stream
<<< Translate: f
<<< Authorization: Basic блаблабла==
>>> HTTP/1.1 405 Not Allowed
>>> Server: nginx/0.8.54
>>> Date: Fri, 17 Apr 2015 15:01:19 GMT
>>> Content-Type: text/html
>>> Connection: keep-alive
>>> Content-Length: 173
Connection closed
Posted at Nginx Forum: http://forum.nginx.org/read.php?21,258069,258158#msg-258158
Подробная информация о списке рассылки nginx-ru