Ⅱ. やり方
1. charset utf-8; を追加する
server { listen 80; root /var/www/html/hoge; index index.html; location / { autoindex on; charset utf-8; } }
2. 設定をリロードする
# CentOS 7 systemctl reload nginx # CentOS 6 service nginx reload
server { listen 80; root /var/www/html/hoge; index index.html; location / { autoindex on; charset utf-8; } }
# CentOS 7 systemctl reload nginx # CentOS 6 service nginx reload