# nginx 변수 자세한 설명
# nginx.conf 로그 설정
log_format main '"$remote_addr" '
'"$remote_user" '
'"[$time_local]" '
'"$status" '
'"$body_bytes_sent" '
'"$http_referer" '
'"$http_user_agent" '
'"$http_x_forwarded_for" '
'"$server_addr" '
'"$server_name" '
'"$server_port" '
'"$server_protocol" '
'"$host" '
'"$hostname" '
'"$scheme" '
'"$request" '
'"$request_uri" '
'"$request_id" '
'"$request_time" '
'"$request_filename "'
'"$upstream_addr "'
'"$upstream_connect_time "'
# http://127.0.0.1/ysoftman?query=a123 일때 access 로그
'"$remote_user" '
'"[$time_local]" '
'"$status" '
'"$body_bytes_sent" '
'"$http_referer" '
'"$http_user_agent" '
'"$http_x_forwarded_for" '
'"$server_addr" '
'"$server_name" '
'"$server_port" '
'"$server_protocol" '
'"$host" '
'"$hostname" '
'"$scheme" '
'"$request" '
'"$request_uri" '
'"$request_id" '
'"$request_time" '
'"$request_filename "'
'"$upstream_addr "'
'"$upstream_connect_time "'
'"$upstream_header_time "'
'"$upstream_response_time "'
'"$http_header1"' # http_헤더명
'"$http_cookie"'
'"$cookie_b"' # cookie_쿠키명
;'"$http_header1"' # http_헤더명
'"$http_cookie"'
'"$cookie_b"' # cookie_쿠키명
# http://127.0.0.1/ysoftman?query=a123 일때 access 로그
"10.10.10.10"
"-"
"[13/Jun/2017:13:38:00 +0900]"
"404"
"571"
"-"
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36"
"-"
"127.0.0.1"
"localhost"
"80"
"HTTP/1.1"
"127.0.0.1"
"usfpc"
"http"
"GET /ysoftman?query=a123 HTTP/1.1"
"/ysoftman?query=a123"
"1fb90a17286302ac6b746296e1a8aef3"
"0.000"
"../nginx/html/ysoftman "
"10.10.10.1:8080"
"0.001"
"0.001"
"0.001"
"test_header" # header1 헤더 값
"a=aaa,b=bbb,c=333" # 쿠키(헤더) 값
"bbb" # 쿠키 b 값
"-"
"[13/Jun/2017:13:38:00 +0900]"
"404"
"571"
"-"
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36"
"-"
"127.0.0.1"
"localhost"
"80"
"HTTP/1.1"
"127.0.0.1"
"usfpc"
"http"
"GET /ysoftman?query=a123 HTTP/1.1"
"/ysoftman?query=a123"
"1fb90a17286302ac6b746296e1a8aef3"
"0.000"
"../nginx/html/ysoftman "
"10.10.10.1:8080"
"0.001"
"0.001"
"0.001"
"test_header" # header1 헤더 값
"a=aaa,b=bbb,c=333" # 쿠키(헤더) 값
"bbb" # 쿠키 b 값
comments:
댓글 쓰기