1.修改在nginx.conf同一路徑下的fastcgi_params文件坐儿,添加如下內(nèi)容
fastcgi_param HTTP_REQUEST_ID $request_id;
2.添加nginx的日志格式:
log_format sas '$http_x_forwarded_for - $request_id';
日志文件如下:
106.121.69.190 - 06a1b46d7113831c32f572293ce4e813
1.修改在nginx.conf同一路徑下的fastcgi_params文件坐儿,添加如下內(nèi)容
fastcgi_param HTTP_REQUEST_ID $request_id;
2.添加nginx的日志格式:
log_format sas '$http_x_forwarded_for - $request_id';
日志文件如下:
106.121.69.190 - 06a1b46d7113831c32f572293ce4e813