LAMP_ Configuring access logs for Apache

Source: Internet
Author: User

Vim/usr/local/apache2/conf/extra/httpd-vhosts.conf


Errorlog "|/usr/local/apache/bin/rotatelogs-l/usr/local/apache/logs/oem.discuz.qq.com-error_%y%m%d.log 86400"
Setenvif Request_uri ". *\.gif$" Image-request
Setenvif Request_uri ". *\.jpg$" Image-request
Setenvif Request_uri ". *\.png$" Image-request
Setenvif Request_uri ". *\.bmp$" Image-request
Setenvif Request_uri ". *\.swf$" Image-request
Setenvif Request_uri ". *\.js$" Image-request
Setenvif Request_uri ". *\.css$" Image-request
Customlog "|/usr/local/apache/bin/rotatelogs-l/usr/local/apache/logs/oem.discuz.qq.com-access_%y%m%d.log 86400" Combined Env=!image-request


650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/85/69/wKioL1eixSPSzSIDAAD0LSct7rA817.png "title=" 41.png "alt=" Wkiol1eixspszsidaad0lsct7ra817.png "/>


/usr/local/apache2/bin/apachectl-t

/usr/local/apache2/bin/apachectl restart


This article is from the It Dick thread blog, so be sure to keep this source http://68686789.blog.51cto.com/10438688/1834275

LAMP_ Configuring access logs for Apache

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.