nginx-dav-ext-module
nginx-dav-ext-module copied to clipboard
fix DAV class from 2 to 1,2 (like apache)
I have found that most clients require a dav class1 to work
For example, davfs2 or fuse-wdfs check class1 and if they don't find it, they write it.
/sbin/mount.davfs: mounting failed; the server does not support WebDAV
I checked with wireshark that the lua-nginx-module puts the header "dav"="2" while the apache server puts the header "dav"="1,2" and therefore davfs and wdfs work with apache without problems and do not work with nginx.
The proposed patch displays the dav version as well as apache.
add_header DAV '1, 2'; in config solve this.
More hacks: http://netlab.dhis.org/wiki/ru:software:nginx:webdav
add_header DAV '1, 2';in config solve this. More hacks: http://netlab.dhis.org/wiki/ru:software:nginx:webdav
Отличная страница, читал ее. На мой взгляд, вполне можно исправить в коде то, что не работает по дефолту.
Кстати, вопрос по этой странице, я так и не понял, зачем в конфиг ставить ограничение
client_max_body_size 50m;
Фактически, это значит, что файлы больше 50 мб загрузить на этот сервер не получится?
Not, that means requests with body part larger than 50MB of declared length won't be handled by the server. Which not necessarily equals the file size.
@avlubimov Насколько я понял, всё то что я хакаю в конфиге - это отклонение от стандарта описанного в RFC. Кажется я даже репортил про слеши на конце в nginx мне сказали что у них по стандарту и дали ссылку.
client_max_body_size - помнится это ограничение не на размер файла:
Sets the maximum allowed size of the client request body
add_header Accept-Ranges 'bytes'; - это то что я ещё добавил много где после.