Last active
April 23, 2018 12:25
-
-
Save sergeycherepanov/aa8621308833463bdf91cfa5fd3091d8 to your computer and use it in GitHub Desktop.
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
map $_project_name $project_name { | |
default undefined; | |
} | |
map $_pool $pool { | |
default undefined; | |
} | |
map $_php_version $php_version { | |
default undefined; | |
} | |
map $_cgi_index $cgiIndex { | |
default undefined; | |
} | |
log_format access_json '{' | |
'"host": "$host", ' | |
'"document_root": "$document_root", ' | |
'"project": "$_project_name", ' | |
'"pool": "$_pool", ' | |
'"php_version": "$_php_version", ' | |
'"cgi_index": "$_cgi_index", ' | |
'"remote_addr": "$remote_addr", ' | |
'"remote_user": "$remote_user", ' | |
'"time_local": "$time_local", ' | |
'"status": "$status", ' | |
'"request": "$request", ' | |
'"http_referer": "$http_referer", ' | |
'"http_user_agent": "$http_user_agent", ' | |
'"body_bytes_sent": "$body_bytes_sent", ' | |
'"request_time": "$request_time", ' | |
'"upstream_response_time": "$upstream_response_time", ' | |
'"pipe": "$pipe"' | |
'}'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment