Move access_log configuration.
authorTom Hughes <tom@compton.nu>
Mon, 20 Apr 2009 17:00:52 +0000 (17:00 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 20 Apr 2009 17:00:52 +0000 (17:00 +0000)
config/nginx.conf

index 1f94ee9d78b583d32e70c833014ebfbb8ca8ec4e..b9055c2d38bb951717ce880e5ef1b1f2c53f5441 100644 (file)
@@ -7,8 +7,7 @@ worker_processes  2;
 # Define PID files
 pid /var/run/nginx.pid;
 
-# Define log files
-access_log /var/log/nginx/access.log;
+# Define error log
 error_log /var/log/nginx/error.log;
 
 events {
@@ -26,6 +25,9 @@ http {
     keepalive_timeout 65;
     tcp_nodelay on;
 
+    # Define access log
+    access_log /var/log/nginx/access.log;
+
     # Configure compression (text/html is compressed by default)
     gzip on;
     gzip_min_length 1100;