From 9296147a0fad8eff8a87d2282e30179ede44aece Mon Sep 17 00:00:00 2001 From: "henry.chen" Date: Mon, 3 Apr 2017 01:18:46 +0800 Subject: [PATCH] update --- conf/nginx/domain/deepzz.conf | 2 +- conf/nginx/nginx.conf | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/conf/nginx/domain/deepzz.conf b/conf/nginx/domain/deepzz.conf index f788f74..4d63999 100644 --- a/conf/nginx/domain/deepzz.conf +++ b/conf/nginx/domain/deepzz.conf @@ -147,7 +147,7 @@ server { } location ^~ /.well-known/acme-challenge/ { - alias /home/jerry/www/challenges/; + alias /data/letsencrypt/challenges/; try_files $uri =404; } diff --git a/conf/nginx/nginx.conf b/conf/nginx/nginx.conf index 7d5dee4..31b8fe2 100644 --- a/conf/nginx/nginx.conf +++ b/conf/nginx/nginx.conf @@ -10,19 +10,20 @@ worker_processes 1; events { - worker_connections 1024; + worker_connections 10240; } http { - include mime.types; - default_type application/octet-stream; - charset UTF-8; + include mime.types; + default_type application/octet-stream; + charset UTF-8; #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' # '$status $body_bytes_sent "$http_referer" ' # '"$http_user_agent" "$http_x_forwarded_for"'; #access_log logs/access.log main; + access_log off; sendfile on; tcp_nopush on;