Created
July 6, 2011 08:25
-
-
Save cocoy/1066823 to your computer and use it in GitHub Desktop.
nginx log format get clientIP behind ELB.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log_format proxied_combined '$http_x_forwarded_for - $remote_user [$time_local] ' | |
'"$request" $status $body_bytes_sent ' | |
'"$http_referer" "$http_user_agent"'; | |
access_log logdir/access.log proxied_combined; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
is there a way to get error_log to use http_x_forwarded_for as well?