ChsHttpDavModule
Revision as of 19:22, 22 September 2010 by MichaelLustfield (Talk)
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 蹇呴』寰楁湁杩欎釜鐩綍鐨勪慨鏀瑰拰鍐欏叆鏉冮檺銆