Move server_tokens off to the global nginx conf

This commit is contained in:
Jose Diaz-Gonzalez
2015-01-03 21:41:18 -05:00
parent e95d1e8602
commit ab7f9f1161
3 changed files with 1 additions and 3 deletions

View File

@@ -44,6 +44,7 @@ events {
}
http {
server_tokens off;
sendfile on;
tcp_nopush on;
tcp_nodelay on;

View File

@@ -2,7 +2,6 @@ server {
listen [::]:80;
listen 80;
server_name $NOSSL_SERVER_NAME;
server_tokens off;
location / {
proxy_pass http://$APP;
proxy_http_version 1.1;

View File

@@ -2,7 +2,6 @@ server {
listen [::]:80;
listen 80;
server_name $NOSSL_SERVER_NAME;
server_tokens off;
return 301 https://$SSL_SERVER_NAME\$request_uri;
}
@@ -10,7 +9,6 @@ server {
listen [::]:443 ssl spdy;
listen 443 ssl spdy;
server_name $SSL_SERVER_NAME;
server_tokens off;
$SSL_DIRECTIVES
keepalive_timeout 70;