Welcome! Log In Create A New Profile

Advanced

Re: Ограничить доступ через webdav

January 30, 2013 12:04AM
On Jan 30, 2013, at 8:04 , Твердиков Александр wrote:

> Добрый день!
> Настроил webdav согласно документации, как можно ограничить доступ по паролю?
>
> Конфиг:
> server {
> listen x.x.x.x:80;
> server_name webdav.name.ru;
>
> access_log /var/log/nginx/webdav.name.ru-access.log;
> error_log /var/log/nginx/webdav.name.ru-error.log;
>
> location / {
> root /var/www/webdav.name.ru;
>
> client_body_temp_path /var/www/webdav.name.ru/temp;
>
> dav_methods PUT DELETE MKCOL COPY MOVE;
> dav_ext_methods PROPFIND OPTIONS;
>
> create_full_put_path on;
> dav_access group:rw all:r;

limit_except GET {
auth_basic "closed site";
auth_basic_user_file conf/htpasswd;
}

http://nginx.org/en/docs/http/ngx_http_core_module.html#limit_except

>
> location ~ /\.ht {
> deny all;
> }
> }
> }


--
Igor Sysoev
http://nginx.com/support.html

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

Ограничить доступ через webdav

Твердиков Александр January 29, 2013 11:06PM

Re: Ограничить доступ через webdav

Igor Sysoev January 30, 2013 12:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 239
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready