apache访问日志文件名使用服务器主机名
apache如何使用服务器主机名apache访问日志文件名使用服务器主机名,apache,hostname,access-log,Apache,Hostname,Access Log,apache如何使用服务器主机名 ex) [root@testserver ~]# hostname testserver vi httpd-vhosts.conf CustomLog "|/usr/local/cronolog/sbin/cronolog --symlink=/home/apache_log/www/access_log /home/apache_log/www/$HOSTNAME_access_log.%Y%m%d" testserver_access_log.2013
ex)
[root@testserver ~]# hostname
testserver
vi httpd-vhosts.conf
CustomLog "|/usr/local/cronolog/sbin/cronolog --symlink=/home/apache_log/www/access_log /home/apache_log/www/$HOSTNAME_access_log.%Y%m%d"
testserver_access_log.20130809