Skip to content

Commit 22f74bc

Browse files
committedNov 6, 2015
fix nginx.conf
1 parent 8d7f6c4 commit 22f74bc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎nginx.conf

+5-3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ http
5252

5353
#limit_zone crawler $binary_remote_addr 10m;
5454

55+
log_format access '$remote_addr - $remote_user [$time_local] "$request" '
56+
'$status $body_bytes_sent "$http_referer" '
57+
'"$http_user_agent" $http_x_forwarded_for';
58+
5559
server
5660
{
5761
listen 80;
@@ -79,9 +83,7 @@ http
7983
expires 1h;
8084
}
8185

82-
log_format access '$remote_addr - $remote_user [$time_local] "$request" '
83-
'$status $body_bytes_sent "$http_referer" '
84-
'"$http_user_agent" $http_x_forwarded_for';
86+
8587
access_log /usr/local/nginx/logs/access.log access;
8688
}
8789

0 commit comments

Comments
 (0)
Please sign in to comment.