Last active
July 13, 2016 18:35
-
-
Save yukirin/7147559 to your computer and use it in GitHub Desktop.
nginxの設定 アクセス制御 ディレクトリ一覧を表示 charsetを指定
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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