|
|||||||||
nginx の変更点
#author("2020-09-10T03:58:47+00:00","default:pentacle","pentacle")
for windows
---
zip を c:\ に展開
nginx.exe
nginx.exe -s reload
* 常駐化 [#tdb8a6a4]
windows のスタートアップに登録
* シャットダウン時 [#rddc2055]
nginx_stop.bat
nginx.exe -s stop
を作成して、nginx.exe と同ディレクトリに配置。
gpedit.msc
コンピューターの構成 → Windowsの設定 → シャットダウン
に先ほどの bat を登録
* security 設定 [#ob8c97af]
''/etc/nginx/nginx.conf''
#pre{{
http{
server_tokens off;
}
}}
''/etc/nginx/conf.d/defaul.conf''
#pre{{
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;
}
}}
|
|||||||||