Owner Match

説明

nginx_http_owner_match_module - ファイルの特定の所有者およびグループのアクセスを制御します。

アクセスルールは宣言の順番に応じてチェックされます。

設定例

location / {
    omallow heiher;  # allow access files of heiher
    omallow jack sftp; # allow access files of jack:sftp
    omdeny all;  # deny others
}

ディレクティブ

omallow

構文:omallow [username | username:groupname | all]
デフォルト:none
コンテキスト:http, server, location, limit_except

ディレクティブは指示されたユーザ名あるいはuser:groupに対してアクセスを許可します。

omdeny

構文:omdeny [username | username:groupname | all]
デフォルト:none
コンテキスト:http, server, location, limit_except

ディレクティブは指示されたユーザ名あるいはuser:groupに対してアクセスを禁止します。

TOP
inserted by FC2 system