From 07806df3d3257e36013d15825d2237eaec1e7235 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 15 Feb 2011 17:16:16 -0200 Subject: Managing default site and nginx.conf --- templates/nginx.conf.erb | 38 +++++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-) (limited to 'templates/nginx.conf.erb') diff --git a/templates/nginx.conf.erb b/templates/nginx.conf.erb index b2be1eb..23077b0 100644 --- a/templates/nginx.conf.erb +++ b/templates/nginx.conf.erb @@ -1,22 +1,20 @@ user www-data; -worker_processes <%= worker_processes %>; +worker_processes 1; -error_log /var/log/nginx/error.log; +#error_log /var/log/nginx/error.log; +error_log /dev/null; pid /var/run/nginx.pid; events { - worker_connections <%= worker_connections %>; + worker_connections 1024; + # multi_accept on; } http { - # see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=524785 - # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=547722 - server_names_hash_bucket_size 100; - include /etc/nginx/mime.types; - default_type application/octet-stream; - access_log /var/log/nginx/access.log; + #access_log /var/log/nginx/access.log; + access_log /dev/null; sendfile on; #tcp_nopush on; @@ -26,7 +24,29 @@ http { tcp_nodelay on; gzip on; + gzip_disable "MSIE [1-6]\.(?!.*SV1)"; include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; } + +# mail { +# # See sample authentication script at: +# # http://wiki.nginx.org/NginxImapAuthenticateWithApachePhpScript +# +# # auth_http localhost/auth.php; +# # pop3_capabilities "TOP" "USER"; +# # imap_capabilities "IMAP4rev1" "UIDPLUS"; +# +# server { +# listen localhost:110; +# protocol pop3; +# proxy on; +# } +# +# server { +# listen localhost:143; +# protocol imap; +# proxy on; +# } +# } -- cgit v1.2.3