FAQ

Page Discussion Edit History

ChsHttpDavModule

(Redirected from NginxChsHttpDavModule)

Contents

[edit] 鎽樿

杩欎釜妯″潡鍙互涓篐ttp webDAV 澧炲姞 PUT, DELETE, MKCOL, COPY 鍜 MOVE 绛夋柟娉曘

杩欎釜妯″潡鍦ㄩ粯璁ょ紪璇戠殑鎯呭喌涓嬩笉鏄鍖呭惈鐨勶紝浣犻渶瑕佸湪缂栬瘧鏃舵寚瀹氬涓嬪弬鏁帮細

./configure --with-http_dav_module

閰嶇疆鑼冧緥锛

location / {
  root     /data/www;
  client_body_temp_path  /data/client_temp;
 
  dav_methods  PUT DELETE MKCOL COPY MOVE;
 
  create_full_put_path   on;
  dav_access             group:rw  all:r;
 
  limit_except  GET {
    allow  192.168.1.0/32;
    deny   all;
  }
}

閰嶇疆鎸囧

[edit] dav_access

syntax: dav_access user:permissions [users:permissions] ...

default: dav_access user:rw

context: http, server, location

杩欎釜鎸囦护鏄祴浜堟煇涓洰褰曟垨鏂囦欢浠ヨ闂潈锛屽锛

dav_access user:rw group:rw all:r;

濡傛灉缁欎竴涓敤鎴风粍鎴栨墍鏈夌敤鎴蜂换浣曟潈闄愶紝user 杩欎釜鍙傛暟灏辨病鏈夊繀瑕佽缃簡锛屽锛

dav_access group:rw all:r;

[edit] dav_methods

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

default: dav_methods off

context: http, server, location

杩欎釜鎸囦护鐢ㄤ簬浜庢寚瀹欻TTP鍜學ebDAV鐨勬柟娉曪紝璁剧疆瀹冧负off 鏃跺叾鎵鏈夌殑鏂规硶閮藉皢鏃犳晥锛堝拷瑙嗕綘宸茬粡璁剧疆鐨勬柟娉曪級銆

Put 鏂规硶鐨勭洰鏍囨枃浠跺繀椤绘槸鍜孨ginx 鐨勪复鏃舵枃浠跺すclient_body_temp_path 鍦ㄥ悓涓涓垎鍖洪噷銆

褰撲娇鐢≒ut 鏂规硶鍒涘缓涓涓枃浠舵椂锛屾湁鍙兘浼氶氳繃璁惧畾date header 淇敼鏂囦欢鍒涘缓鏃ユ湡銆

[edit] create_full_put_path

syntax: create_full_put_path on|off

default: create_full_put_path off

context: http, server, location

榛樿鎯呭喌涓嬶紝Put 鏂规硶鍙兘鍦ㄥ凡瀛樺湪鐨勭洰褰曢噷鍒涘缓鏂囦欢銆傚綋鐒朵簡Nginx 蹇呴』寰楁湁杩欎釜鐩綍鐨勪慨鏀瑰拰鍐欏叆鏉冮檺銆