vim /usr/local/apache2.4/conf/extra/httpd-vhosts.conf
/usr/local/apache2.4/bin/apachectl -t
/usr/local/apache2.4/bin/apachectl graceful
curl -x127.0.0.1:80 123.com/adfasdfsafd.jpg1 -I
tail /usr/local/apache2.4/logs/123.com-access_log
CustomLog "|/usr/local/apache2.4/bin/rotatelogs -l logs/123.com-access_%Y%m%d.log 86400" combined env=!img
/usr/local/apache2.4/bin/apachectl -M |grep expire
11.22 访问日志不记录静态文件 11.23 访问日志切割 11.24 静态元素过期时间
原文地址:http://blog.51cto.com/12058686/2083937