一、與日誌格式相關的內置變量瀏覽器
內置變量 | 含義 |
---|---|
$remote_addr | 客戶端的IP地址 |
$remote_user | 客戶端用戶名,用於記錄瀏覽者進行身份驗證時的名稱 |
$time_local | 訪問的時間與時區 |
$request | 請求的URI和http協議 |
$status | 請求返回的http狀態碼 |
$body_bytes_sent | 發送給客戶端的文件主體內容的大小 |
$http_referer | 來路URL地址 |
$http_user_agent | 瀏覽器信息 |
$http_x_forwarded_for | 客戶端IP地址列表(包括中間通過的代理) |