bsp ica borde rep 单独 for ase rgb ott
nginx 访问日志
nginx 的虚拟主机的访问日志都是保存在 / usr/local/nginx/logs/access.log。但是这样并不能方便我们查看,所以我们需要针对单独的虚拟主机进行修改。
我们可以在 nginx.conf 中定义访问日志的格式
查看访问日志格式
- grep -A2 "log_format" /usr/local/nginx/conf/nginx.conf
- log_format allen '$remote_addr $http_x_forwarded_for [$time_local]''
- $host "$request_uri" $status'' "$http_referer" "$http_user_agent"';
LNMP 之 nginx 日志管理
- grep -A2 "log_format" /usr/local/nginx/conf/nginx.conf
- log_format allen '$remote_addr $http_x_forwarded_for [$time_local]''
- $host "$request_uri" $status'' "$http_referer" "$http_user_agent"';
来源: http://www.bubuko.com/infodetail-2450409.html