Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/nginx/templates/nginx.conf.erb

Issue 6239349607759872: Issue 300 - Don`t expose nginx version number in headers (Closed)
Patch Set: Created April 14, 2014, 6:37 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/nginx/templates/nginx.conf.erb
===================================================================
--- a/modules/nginx/templates/nginx.conf.erb
+++ b/modules/nginx/templates/nginx.conf.erb
@@ -14,17 +14,18 @@ http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" $scheme '
'"$http_accept_language" "$http_host" "$http_x_client_id"';
- access_log /var/log/nginx/access.log main;
+ access_log /var/log/nginx/access.log main;
+ server_tokens off;
sendfile <%= scope.lookupvar('nginx::params::sendfile')%>;
<% if scope.lookupvar('nginx::params::tcp_nopush') == 'on' %>
tcp_nopush on;
<% end %>
keepalive_timeout <%= scope.lookupvar('nginx::params::keepalive_timeout') %>;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld