全球主机交流论坛

标题: lnmp0.4 创建虚拟主机的log文件似乎有问题 [打印本页]

作者: fabulous    时间: 2010-5-11 14:00
标题: lnmp0.4 创建虚拟主机的log文件似乎有问题
  1.           al="log_format  $al_name  '\$remote_addr - \$remote_user [\$time_local] "\$request" '
  2.              '\$status \$body_bytes_sent "\$http_referer" '
  3.              '"\$http_user_agent" \$http_x_forwarded_for';
  4.                 access_log  $al_name.log  $al_name;"
复制代码
我改成了
  1.           al="log_format  $al_name.log  '\$remote_addr - \$remote_user [\$time_local] "\$request" '
  2.              '\$status \$body_bytes_sent "\$http_referer" '
  3.              '"\$http_user_agent" \$http_x_forwarded_for';
  4.                 access_log  $al_name.log"
复制代码
这样才生成了日志。
我对nginx研究还不深,刚刚开始。
如有不正确之处,欢迎指正。
作者: lemss    时间: 2010-5-11 15:08
好像是有点毛病
作者: heiheihoho    时间: 2010-5-11 15:45
不懂,学习。。。




欢迎光临 全球主机交流论坛 (https://4414.19990909.workers.dev/) Powered by Discuz! X3.4