for windows
nginx.exe
nginx.exe -s reload
常駐化†
windows のスタートアップに登録
シャットダウン時†
nginx_stop.bat
nginx.exe -s stop
を作成して、nginx.exe と同ディレクトリに配置。
gpedit.msc
コンピューターの構成 → Windowsの設定 → シャットダウン
に先ほどの bat を登録
security 設定†
/etc/nginx/nginx.conf
http{
server_tokens off;
}
/etc/nginx/conf.d/defaul.conf
server {
ssl_protocols TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers 'ECDH !aNULL !eNULL !SSLv2 !SSLv3';
add_header Strict-Transport-Security "max-age=31536000; includeSubdoma\
ins";
add_header X-Frame-Options SAMEORIGIN;
}