FAQ

Page Discussion Edit History

HttpOwnerMatchModule

Revision as of 16:11, 23 December 2010 by Heiher (Talk)

(diff) 鈫 Older revision | Latest revision (diff) | Newer revision 鈫 (diff)

Contents

[edit] Synopsis

This module provides a simple file owner-based access control.

Module nginx_http_owner_match_module makes it possible to 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
}


[edit] Directives

[edit] omallow

syntax: omallow [ username | username groupname | all ]

default: no

context: http, server, location, limit_except

Directive grants access for the username or user:group indicated.


[edit] omdeny

syntax: deny [ username | username groupname | all ]

default: no

context: http, server, location, limit_except

Directive forbids access for the username or user:group indicated.

[edit] References

Chinese Documentation and Source download