From: Lucien Gentis Date: Tue, 30 Jun 2026 11:57:52 +0000 (+0000) Subject: missing tags. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=38a9485279470b61fe5123cf913678a3ac537511;p=thirdparty%2Fapache%2Fhttpd.git missing tags. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1935747 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/logs.xml b/docs/manual/logs.xml index 3b03181aea..7f32685897 100644 --- a/docs/manual/logs.xml +++ b/docs/manual/logs.xml @@ -178,6 +178,7 @@ LogLevel info rewrite:trace5 +

This sets the main LogLevel to info, but turns it up to trace5 for @@ -243,6 +244,7 @@ LogLevel info rewrite:trace5 LogFormat "%h %l %u %t \"%r\" %>s %b" common CustomLog "logs/access_log" common +

This defines the nickname common and associates it with a particular log format string. The format @@ -388,6 +390,7 @@ CustomLog "logs/access_log" common LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined CustomLog "log/access_log" combined +

This format is exactly the same as the Common Log Format, with the addition of two more fields. Each of the additional @@ -444,6 +447,7 @@ CustomLog "logs/access_log" common CustomLog "logs/referer_log" "%{Referer}i -> %U" CustomLog "logs/agent_log" "%{User-agent}i" +

This example also shows that it is not necessary to define a nickname with the +

As another example, consider logging requests from english-speakers to one log file, and non-english speakers to a @@ -487,6 +492,7 @@ SetEnvIf Accept-Language "en" english CustomLog "logs/english_log" common env=english CustomLog "logs/non_english_log" common env=!english +

In a caching scenario one would want to know about the efficiency of the cache. A very simple method to @@ -498,6 +504,7 @@ SetEnv CACHE_MISS 1 LogFormat "%h %l %u %t "%r " %>s %b %{CACHE_MISS}e" common-cache CustomLog "logs/access_log" common-cache +

mod_cache will run before mod_env and, when successful, will deliver the @@ -513,6 +520,7 @@ CustomLog "logs/access_log" common-cache LogFormat "%400,501{User-agent}i" browserlog LogFormat "%!200,304,302{Referer}i" refererlog +

In the first example, the User-agent will be logged if the HTTP status code is 400 or 501. In other cases, a @@ -697,6 +705,7 @@ CustomLog "|$/usr/local/apache/bin/rotatelogs /var/log/httpd/access_log 86400" c LogFormat "%v %p %h %l %u %t \"%r\" %>s %b" commonvhost CustomLog "logs/access_log" commonvhost +

The %v is used to log the name of the virtual host that is serving the request. Then a program like