Move server_tokens off to the global nginx conf
This commit is contained in:
@@ -44,6 +44,7 @@ events {
|
|||||||
}
|
}
|
||||||
|
|
||||||
http {
|
http {
|
||||||
|
server_tokens off;
|
||||||
sendfile on;
|
sendfile on;
|
||||||
tcp_nopush on;
|
tcp_nopush on;
|
||||||
tcp_nodelay on;
|
tcp_nodelay on;
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ server {
|
|||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name $NOSSL_SERVER_NAME;
|
server_name $NOSSL_SERVER_NAME;
|
||||||
server_tokens off;
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://$APP;
|
proxy_pass http://$APP;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ server {
|
|||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name $NOSSL_SERVER_NAME;
|
server_name $NOSSL_SERVER_NAME;
|
||||||
server_tokens off;
|
|
||||||
return 301 https://$SSL_SERVER_NAME\$request_uri;
|
return 301 https://$SSL_SERVER_NAME\$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -10,7 +9,6 @@ server {
|
|||||||
listen [::]:443 ssl spdy;
|
listen [::]:443 ssl spdy;
|
||||||
listen 443 ssl spdy;
|
listen 443 ssl spdy;
|
||||||
server_name $SSL_SERVER_NAME;
|
server_name $SSL_SERVER_NAME;
|
||||||
server_tokens off;
|
|
||||||
$SSL_DIRECTIVES
|
$SSL_DIRECTIVES
|
||||||
|
|
||||||
keepalive_timeout 70;
|
keepalive_timeout 70;
|
||||||
|
|||||||
Reference in New Issue
Block a user