Verified Commit 978205d4 authored by tr's avatar tr
Browse files

Use X-Real-IP in access_log

parent c4d0179c
......@@ -16,7 +16,11 @@ http {
include mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log;
log_format main '$http_x_real_ip - $remote_user [$msec] [$request_time] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent"';
access_log /var/log/nginx/access.log main;
error_log /var/log/nginx/error.log warn;
sendfile on;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment