2012-11-15 2 views
-1

내 nginx.conf :의 nginx의 WebDAV 서버

location ~ ^/api/(.*)$ { 
    alias /home/username/apidav/$remote_user/$1; 

    client_body_temp_path  /var/www/path/; 
    client_max_body_size  50m; 
    dav_methods     PUT DELETE MKCOL;# COPY MOVE; 
    create_full_put_path  on; 
    dav_access     user:rw group:rw all:r; 
    dav_ext_methods    PROPFIND OPTIONS; 
    auth_request /api_auth; 
} 

location /api_auth { 
    internal; 
    proxy_pass http://www.domain.ru/accounts/api_auth/; 
    proxy_pass_request_body off; 
    proxy_set_header Content-Length ""; 
    proxy_set_header X-Original-URI $request_uri; 
} 

컬 -T있는 test.txt '에 http : // 거트 : [email protected]/api/'컬 (56) Recv 실패 : 피어에 의한 연결 재설정?

왜?

답변