File: //etc/nginx/nginx.conf
# Nginx.conf is managed by Puppet!!!
######################################
user nginx;
worker_processes auto;
# Load dynamic modules. See /usr/share/nginx/README.dynamic.
include /usr/share/nginx/modules/*.conf;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/linqhost_log_format.conf;
include /etc/nginx/mime.types;
default_type application/octet-stream;
# Begin -- Managed settings coming from lh_www::hpw_services::nginxMainConfig
fastcgi_buffer_size 32k;
fastcgi_buffers 8 16k;
map_hash_bucket_size 128;
server_names_hash_bucket_size 128;
# End -- Managed settings coming from lh_www::hpw_services::nginxMainConfig
# This prevents Heimdall requests sneak into the sites access.log
map $request_uri $main_loggable {
default 1;
~^/heimdall 0;
}
# This variable is needed, even if we don't use Heimdall (for the log format)
map $host $heimdall_log {
default "-";
}
access_log /var/log/nginx/access.log main;
sendfile on;
keepalive_timeout 65;
server_tokens off;
include /etc/nginx/conf.d/*.conf;
more_set_headers 'LinQhost-HPW-Trace-ID: $request_id ';
more_set_headers 'Server: LinQhost HPW platform';
}