If location

Danila nginx-forum на forum.nginx.org
Чт Май 30 07:51:38 UTC 2019


Добрый вечер! 

Подскажите пожалуйста есть ли такая возможность и как ещё реализовать? 
Задумка такая имеется Nginx 1.16 v расширенный 3 дополнительными модулями
nginx-auth-ldap nginx-dav-ext-module nginx-upload-module 
При подключении (dav методом) пользователю предоставляется доступ к
каталогам, но нужно чтобы к определенным были права только на чтение или
вообще ни каких а для других полный доступ. 

На пример есть общий каталог ALL на который имеется полный доступ путем
dav_access user:rw group:rw all:rw; 
В общем каталоге имеется подкаталоги пользователей: 
Ivanov к этому каталогу имеет доступ только Ivanov ну хотя бы что бы другие
не удаляли ничего 
Petrov к этом соответствено так же но для Petrov. 
Если ставить условие на доступ к location ngix не принимает запись, как
можно сделать проверку?

Good evening!

Please tell me if there is such an opportunity and how else to implement?
This idea is available Nginx 1.16 v extended with 3 additional modules
nginx-auth-ldap nginx-dav-ext-module nginx-upload-module
When connecting (by dav method), the user is granted access to directories,
but it is necessary that certain have read-only rights or no access at all.

For example, there is a common directory ALL for which there is full access
by dav_access user: rw group: rw all: rw;
In the general directory there are subdirectories of users:
Ivanov has access to this directory only Ivanov well, at least so that
others would not delete anything
Petrov to this, respectively, as well but for Petrov.
If you set a condition for access to the location, ngix does not accept the
record, how can you make a check?

Posted at Nginx Forum: https://forum.nginx.org/read.php?21,284347,284355#msg-284355



Подробная информация о списке рассылки nginx-ru