Skip to content

Instantly share code, notes, and snippets.

@pandanote-info
Created January 4, 2020 14:04
Show Gist options
  • Save pandanote-info/972c38e8742a24bdcb2a25adff3b0ea8 to your computer and use it in GitHub Desktop.
Save pandanote-info/972c38e8742a24bdcb2a25adff3b0ea8 to your computer and use it in GitHub Desktop.
mapを使ったIPアドレスによるアクセスコントロールリストの設定例(その2)。
http {
(略)
server {
(略)
location /somewhere_to_restrict {
(前略)
if ($allowed = deny) {
return 404;
}
(後略)
}
(略)
}
(略)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment