nginx-dav-ext-module icon indicating copy to clipboard operation
nginx-dav-ext-module copied to clipboard

fix DAV class from 2 to 1,2 (like apache)

Open avlubimov opened this issue 6 years ago • 4 comments
trafficstars

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.

avlubimov avatar Aug 20 '19 11:08 avlubimov

add_header DAV '1, 2'; in config solve this. More hacks: http://netlab.dhis.org/wiki/ru:software:nginx:webdav

rozhuk-im avatar Mar 12 '20 21:03 rozhuk-im

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 мб загрузить на этот сервер не получится?

avlubimov avatar May 17 '20 15:05 avlubimov

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.

AnrDaemon avatar May 17 '20 18:05 AnrDaemon

@avlubimov Насколько я понял, всё то что я хакаю в конфиге - это отклонение от стандарта описанного в RFC. Кажется я даже репортил про слеши на конце в nginx мне сказали что у них по стандарту и дали ссылку.

client_max_body_size - помнится это ограничение не на размер файла:

Sets the maximum allowed size of the client request body

add_header Accept-Ranges 'bytes'; - это то что я ещё добавил много где после.

rozhuk-im avatar May 23 '20 15:05 rozhuk-im