Skip to content

Instantly share code, notes, and snippets.

@yukirin
Last active July 13, 2016 18:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yukirin/7147559 to your computer and use it in GitHub Desktop.
Save yukirin/7147559 to your computer and use it in GitHub Desktop.
nginxの設定 アクセス制御 ディレクトリ一覧を表示 charsetを指定
server {
#charsetを指定
charset UTF-8;
location / {
#ディレクトリ一覧を表示
autoindex on;
#アクセス制御
allow 192.168.1.0/24;
deny all;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment