存档

文章标签 ‘access’

nginx 的 access log rewrite log 日志配置

2017年3月5日 没有评论

nginx 的 rewrite log 是记录在 error log 文件中,而不是access log中。 nginx 开启 rewrite 的方法(在server段中添加): 首先,打开 error_log 日志 error_log logs/error.log notice; 1 error_log logs/error.log notice; 然后打开 rewrite_log 开关 rewrite_log on; 1 rewrite_log on; 这样就可以在 error.log 中生成重...

分类: nginx 标签: , ,