$remote_addr The remote host
$remote_user The authenticated user (if any)
$time_local The time of the access
$request The first line of the request
$status The status of the request
$body_bytes_sent The size of the server's response, in bytes
$http_referer The referrer URL, taken from the request's headers
$http_user_agent The user agent, taken from the request's headers
1 个回复
zkbhj - 凯冰科技站长
赞同来自:
注意:只有在用了proxy_pass或者fastcgi_pass标记的location{ }里面变量$request_body才会生效。
如果你想记录某个cookie或者header里面的值的话,可以用下面的方法:
另外,常规的变量有:
官方文档:http://nginx.org/en/docs/http/ ... ction