code style consistency across nginx configs

This commit is contained in:
Nicolae Vartolomei 2013-01-12 21:33:17 +02:00
parent fdaace0f9b
commit eb613e8c68
3 changed files with 12 additions and 12 deletions

View File

@ -1,2 +1,3 @@
# opt-in to the future
# Force the latest IE version
# Use ChromeFrame if it's installed for a better experience for the poor IE folk
add_header "X-UA-Compatible" "IE=Edge,chrome=1";

View File

@ -1,5 +1,5 @@
# Set another default user than root for security reasons
user www www;
user www www;
# As a thumb rule: One per CPU. If you are serving a large amount
# of static files, which requires blocking disk reads, you may want
@ -22,23 +22,23 @@ events {
}
# Change these paths to somewhere that suits you!
error_log logs/error.log;
pid logs/nginx.pid;
error_log logs/error.log;
pid logs/nginx.pid;
http {
# Set the mime-types via the mime.types external file
include mime.types;
include mime.types;
# And the fallback mime-type
default_type application/octet-stream;
default_type application/octet-stream;
# Format for our log files
log_format main '$remote_addr - $remote_user [$time_local] $status '
log_format main '$remote_addr - $remote_user [$time_local] $status '
'"$request" $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
# Click tracking!
access_log logs/access.log main;
access_log logs/access.log main;
# Hide nginx version
server_tokens off;
@ -81,9 +81,8 @@ http {
# a specific directory:
# gzip_static on;
gzip_disable "msie6";
gzip_vary on;
gzip_disable "msie6";
gzip_vary on;
include sites-enabled/*;
}

View File

@ -5,6 +5,7 @@
server {
# don't forget to tell on which port this server listens
listen 80;
# listen on the www host
server_name www.example.com;
@ -31,5 +32,4 @@ server {
# Include the component config parts for h5bp
include conf/h5bp.conf;
}