The module provides a simple file based on owner's http://www.aliyun.com/zixun/aggregation/38609.html "> access control."
The Nginx_http_owner_match_module module allows it to control the access of specific files to the owner and organization.
Access rule checks are based on the order in which they are declared.
Configuration Example:
Location/{ Omallow Heiher; # Allow access files of Heiher Omallow Jack Sftp; # Allow access files of jack:sftp Omdeny all; # Deny Others }
Instructions
Omallow
Syntax: Omallow [username | username GroupName | all] Default value: No Scopes: HTTP, server, location, limit_except This directive is used to access the specified user name or user group.
Omdeny
Syntax: Deny [username | username GroupName | all] Default value: No Scopes: HTTP, server, location, limit_except This directive is used to prevent access to the specified user name or user group.
Resources
Nginx Module HTTP Ownermatch
I wrote a Nginx module, HTTP Ownermatch, that solves the problem of Nginx between virtual hosts that can be accessed through linked files (hard links and symbolic links). This module allows you to specify which user files each Location can or cannot access for each virtual host.
Configuration file Instance
Location/{ root HTML; Index index.html index.htm; Omallow Heiher; # Allow access to files attached to Heiher Omallow guest sftp; # Allow access to files attached to Guest:sftp Omdeny all; # do not allow access to any other files }
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.