FAQ

Page Discussion Edit History

RuHttpDavModule

(Redirected from NginxRuHttpDavModule)

Contents

[edit] ngx_http_dav_module

袦芯写褍谢褜 ngx_http_dav_module 芯斜褉邪斜邪褌褘胁邪械褌 HTTP- 懈 WebDAV-屑械褌芯写褘 PUT, DELETE 懈 MKCOL. 袩芯 褍屑芯谢褔邪薪懈褞 屑芯写褍谢褜 薪械 褋芯斜懈褉邪械褌褋褟, 薪褍卸薪芯 褉邪蟹褉械褕懈褌褜 械谐芯 褋斜芯褉泻褍 锌褉懈 泻芯薪褎懈谐褍褉懈褉芯胁邪薪懈懈 锌邪褉邪屑械褌褉芯屑 --with-http_dav_module. 小芯写械褉卸邪薪懈械 袩褉懈屑械褉 泻芯薪褎懈谐褍褉邪褑懈懈

[edit] 袛懈褉械泻褌懈胁褘

  • [#dav_access dav_access]
  • [#dav_methods dav_methods]
  • [#create_full_put_path create_full_put_path]

袩褉懈屑械褉 泻芯薪褎懈谐褍褉邪褑懈懈

: location / {
: root                   /data/www;

: client_body_temp_path  /data/client_temp;

: dav_methods  PUT DELETE MKCOL;

: create_full_put_path   on;
: dav_access             group:rw  all:r;

: limit_except  GET {
: allow  192.168.1.0/32;
: deny   all;
: }
: }

Template:Anchor

[edit] dav_access

syntax: dav_access 锌芯谢褜蟹芯胁邪褌械谢懈:锌褉邪胁邪 [锌芯谢褜蟹芯胁邪褌械谢懈:锌褉邪胁邪] ...

default: dav_access user:rw

context: http, server, location

袛懈褉械泻褌懈胁邪 蟹邪写邪褢褌 锌褉邪胁邪 写芯褋褌褍锌邪 写谢褟 褋芯蟹写邪胁邪械屑褘褏 褎邪泄谢芯胁 懈 泻邪褌邪谢芯谐芯胁, 薪邪锌褉懈屑械褉,

: dav_access  user:rw  group:rw  all:r;

袝褋谢懈 蟹邪写邪薪褘 泻邪泻懈械-谢懈斜芯 锌褉邪胁邪 写谢褟 groups 懈谢懈 all, 褌芯 锌褉邪胁邪 写谢褟 user 褍泻邪蟹褘胁邪褌褜 薪械芯斜褟蟹邪褌械谢褜薪芯:

: dav_access  group:rw  all:r;


Template:Anchor

[edit] dav_methods

syntax: dav_methods [off|put|delete|mkcol] ...

default: dav_methods off

context: http, server, location

袛懈褉械泻褌懈胁邪 褉邪蟹褉械褕邪械褌 褍泻邪蟹邪薪薪褘械 HTTP- 懈 WebDAV-屑械褌芯写褘. 袩邪褉邪屑械褌褉 off 蟹邪锌褉械褖邪械褌 胁褋械 屑械褌芯写褘, 芯斜邪褉邪斜邪褌褘胁邪械屑褘械 写邪薪薪褘屑 屑芯写褍谢械屑, 懈谐薪芯褉懈褉褍褟 芯褋褌邪谢褜薪褘械 锌邪褉邪屑械褌褉褘;

袛谢褟 褉邪斜芯褌褘 屑械褌芯写邪 PUT 薪械芯斜褏芯写懈屑芯, 褔褌芯斜褘 褎邪泄谢 薪邪褏芯写懈谢褋褟 薪邪 褌芯屑 卸械 褉邪蟹写械谢械, 褔褌芯 懈 泻邪褌邪谢芯谐 褋 胁褉械屑械薪薪褘屑懈 褎邪泄谢邪屑懈, 蟹邪写邪胁邪械屑褘泄 写懈褉械泻褌懈胁芯泄 client_body_temp_path 写谢褟 写邪薪薪芯谐芯 location.

袩褉懈 褋芯蟹写邪薪懈懈 褎邪泄谢邪 褋 锌芯屑芯褖褜褞 屑械褌芯写邪 PUT 屑芯卸薪芯 蟹邪写邪褌褜 写邪褌褍 屑芯写懈褎懈泻邪褑懈懈, 锌械褉械写邪胁 械褢 胁 褋褌褉芯泻械 蟹邪谐芯谢芯胁泻邪 "Date".

Template:Anchor

[edit] create_full_put_path

syntax: create_full_put_path on|off

default: create_full_put_path off

context: http, server, location

袩芯 褋锌械褑懈褎懈泻邪褑懈懈 WebDAV 屑械褌芯写 PUT 屑芯卸械褌 褋芯蟹写邪胁邪褌褜 褎邪泄谢 褌芯谢褜泻芯 胁 褍卸械 褋褍褖械褋褌胁褍褞褖械屑 泻邪褌邪谢芯谐械. 袛邪薪薪邪褟 写懈褉械泻褌懈胁邪 褉邪蟹褉械褕邪械褌 褋芯蟹写邪胁邪褌褜 胁褋械 薪械芯斜褏芯写懈屑褘械 锌褉芯屑械卸褍褌芯褔薪褘械 泻邪褌邪谢芯谐懈.