【问题标题】:nginx webdav server with auth request [closed]带有身份验证请求的 nginx webdav 服务器 [关闭]
【发布时间】:2012-11-15 21:03:53
【问题描述】:

我的 nginx.conf:

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;
}

curl -T test.txt 'http://gert:passwd@www.domain.ru/api/' curl: (56) Recv failure: Connection reset by peer?

为什么?

【问题讨论】:

    标签: authentication nginx webdav


    【解决方案1】:
    猜你喜欢
    • 2014-04-06
    • 2023-03-24
    • 2015-12-31
    • 1970-01-01
    • 1970-01-01
    • 2015-09-21
    • 2012-11-29
    • 2017-06-01
    • 1970-01-01
    相关资源
    最近更新 更多