瀏覽代碼

Disable more nginx logging.

Michael Hixson 12 年之前
父節點
當前提交
b74792b0f9
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      php-silex/deploy/nginx_raw.conf

+ 2 - 0
php-silex/deploy/nginx_raw.conf

@@ -4,6 +4,7 @@ worker_processes  8;
 #error_log  logs/error.log;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  info;
+error_log /dev/null crit;
 
 #pid        logs/nginx.pid;
 
@@ -22,6 +23,7 @@ http {
     #                  '"$http_user_agent" "$http_x_forwarded_for"';
 
     #access_log  logs/access.log  main;
+    access_log off;
 
     sendfile        on;
     #tcp_nopush     on;