Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ограничить доступ через webdav
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@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|