Apache:Variaveis do Log: Difference between revisions

From Wiki
(Criou nova página com ''''LogFormat''' "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined '''LogFormat''' "%h %l %u %t \"%r\" %>s %b" common * '''%h''' => Remote host * ...')
 
No edit summary
Line 19: Line 19:


"%{User-agent}i"
"%{User-agent}i"
== Ver também ==
*[[Definindo a URL padrão no IBM HTTP Server Apache]]
*[[Apache:Redirecionando para pagina de Erro]]
*[[Apache:Redirecionando de HTTP para HTTPS]]
*[[Linux e Unix: Ferramentas de Monitoracao e Performance]]
*[[AWSTATS: Configurando o AWSTATS]]
*[[Apache HTTP Server|  Mais Artigos sobre Apache HTTP Server]]
[[Category:Apache HTTP Server]]

Revision as of 20:11, 4 February 2013

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined

LogFormat "%h %l %u %t \"%r\" %>s %b" common


  • %h => Remote host
  • %l => Remote logname (from identd, if supplied). This will return a dash unless IdentityCheck is set On.
  • %u => Remote user (from auth; may be bogus if return status (%s) is 401)
  • %t => Time the request was received (standard english format)
  • %r => First line of request
  • %s => Status. For requests that got internally redirected, this is the status of the *original* request --- %...>s for the last.
  • %b => Size of response in bytes, excluding HTTP headers. In CLF format, i.e. a '-' rather than a 0 when no bytes are sent.

Referer log format

"%{Referer}i -> %U"

Agent (Browser) log format

"%{User-agent}i"


Ver também