Skip to content

Web Developer Blog

Change Apache Log Format

vim /etc/httpd/conf/extra/httpd-vhosts.conf
CustomLog “…../logs/access.log” vhost_combined
LogFormat “%h %t \”%r\” %>s %b %D \”%{Referer}i\” \”%{User-Agent}i\”” vhost_combined

Reference:
https://blog.elijaa.org/2010/09/07/how-to-make-apache-log-real-scriptname-and-execution-time-with-mod_rewrite-and-logformat/

Author adminPosted on July 3, 2017July 3, 2017Categories Apache

Post navigation

Previous Previous post: Lock Linux Account
Next Next post: GoAccess Usage

Categories

  • Amazon EC2
  • Apache
  • Apple
  • Bootstrap
  • Browser
  • Campaign Monitor
  • CDN
  • CentOS
  • Chrome
  • Composer
  • Concrete5
  • cPanel
  • CSS
  • Debian Linux
  • DNS
  • Drupal
  • eDM
  • Facebook
  • FirePHP
  • Flash
  • git
  • Gmail
  • Google Apps
  • Google Map
  • Horde
  • Hosting
  • HTML
  • HTML 5
  • Image Optimization
  • iPad
  • Java
  • Javascript
  • jQuery
  • Linux
  • Mac
  • Magento
  • Materials
  • MetaWeblog
  • MODx
  • MySQL
  • Nginx
  • Node.js
  • Payment Gateway
  • Paypal
  • Perl
  • Photoshop
  • PHP
  • Plesk
  • Programming
  • Push Message
  • Putty
  • React Native
  • Security
  • SEO
  • Shopify
  • SSH
  • SSL
  • Sublime Text
  • Tumblr
  • Uncategorized
  • WampServer
  • Web
  • Web Design
  • Windows
  • Wordpress
  • XenServer












Web Developer Blog Proudly powered by WordPress