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 - ファイルの特定の所有者およびグループのアクセスを制御します。
アクセスルールは宣言の順番に応じてチェックされます。
設定例
location / {
omallow heiher; # allow access files of heiher
omallow jack sftp; # allow access files of jack:sftp
omdeny all; # deny others
}
構文: | omallow [username | username:groupname | all] |
---|---|
デフォルト: | none |
コンテキスト: | http, server, location, limit_except |
ディレクティブは指示されたユーザ名あるいはuser:groupに対してアクセスを許可します。
構文: | omdeny [username | username:groupname | all] |
---|---|
デフォルト: | none |
コンテキスト: | http, server, location, limit_except |
ディレクティブは指示されたユーザ名あるいはuser:groupに対してアクセスを禁止します。