Nginx Series Tutorials: Nginxhttpownermatch modules (resolve linked file cross-station access)

Source: Internet
Author: User
Keywords Nginxhttpownermatch cross-station access Nginx series tutorials linked files
Tags access access control aliyun based checks configuration configuration example control

Overview

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
}

Source Code Warehouse

git clone git://gitcafe.com/heiher/nginx.git

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.