北京时间:
 
 
 首页 
 
 
 
 
 
 
 洛杉矶论坛 
   
洛杉矶华人论坛 |  搜索  |  注册  |  登陆  |  FAQ 
 
 
How to create seperate access log for virtual host?

 
发表新帖   回复帖子    洛杉矶华人论坛 首页 -> 建议与合作
阅读上一个主题 :: 阅读下一个主题  
留言
How to create seperate access log for virtual host?  引用并回复
 
发布人: Mrs LA   发布于: 2006/02/03, 9:48 am

First off you need the server access logs to be readable by the script. Also if you have a lot of virtual hosts and all those use one access log file you need to split them up in a log file for each domain name.

That is done in the apache httpd.conf or in the file where you have configured your virtual host:

LogFormat "%h %l %u %t "%r" %>s %b" common

<virtualhost *:80>

DocumentRoot "/var/www/html/example.com"

ServerName example.com

ErrorLog logs/example.error.log

CustomLog logs/example.access.log common

</virtualhost>

CustomLog is the access log you will be needing.




_________________
支持洛杉矶华人,点评洛杉矶华人商家
返回页首
阅览成员资料 (Profile) 发送私人留言 (PM)
从以前的帖子开始显示:   
点评这篇文章
 
1 2 3 4 5
0个人参与评分
发表新帖   回复帖子    洛杉矶华人论坛 首页 -> 建议与合作 论坛时间为 PST (美国/加拿大)
1页/共1   
转跳到:  


 
Copyright 2006-2008 www.ChineseInLA.com All rights reserved. Privacy Policy