Skip to content

seologanalyzer/apache-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

Apache Analyzer

Log some informations from GoogleBot & BingBot for SeoLogAnalyzer.

Installation

Edit virtualhost (/etc/apache2/sites-available/)

Add after DocumentRoot :

LogFormat "%h:::%>s:::%b:::%D:::%{Referer}i:::%{User-agent}i:::%V%r" slacombined
SetEnvIf User-Agent "Googlebot/2.1" sla
SetEnvIf User-Agent "bingbot/2.0" sla
SetEnvIf Referer "google.*q=" sla
SetEnvIf Referer "bing.*q=" sla
CustomLog "|/var/www/example.com/sla/logger/index.php" slacombined env=sla

Then CHMOD 777 on /var/www/example.com/sla/logger/index.php

Directive LogFormat Apache logs

  • %h = Ip
  • %>s = Server code response
  • %b = Size
  • %D = Loading time (µs)
  • %{Referer}i = Referer
  • %{User-agent}i = User agent
  • %V%r = Complete uri

More about apache logs

Apache logs

Apache modlogconfig

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published