Move server_tokens off to the global nginx conf

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

No files matched your search

+1
View File
@@ -44,6 +44,7 @@ events {
}
http {
server_tokens off;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
@@ -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;
@@ -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;