Accept cookies for analytics, social media, and advertising, or learn more and adjust your preferences. These cookies are on by default for visitors outside the UK and EEA. Privacy Notice.
nginx_http_owner_match_module - control access for specific owners and groups of files.
Access rules are checked according to the order of their declaration.
Example configuration:
location / {
omallow heiher; # allow access files of heiher
omallow jack sftp; # allow access files of jack:sftp
omdeny all; # deny others
}
Syntax: | omallow [username | username:groupname | all] |
---|---|
Default: | none |
Context: | http, server, location, limit_except |
Directive grants access for the username or user:group indicated.
Syntax: | omdeny [username | username:groupname | all] |
---|---|
Default: | none |
Context: | http, server, location, limit_except |
Directive forbids access for the username or user:group indicated.