diff options
author | Stefan Fritsch <sf@sfritsch.de> | 2014-03-29 21:56:19 +0100 |
---|---|---|
committer | Stefan Fritsch <sf@sfritsch.de> | 2014-03-29 21:56:45 +0100 |
commit | 2a463b3cd73c32ee9dcd508248d0194923f435f4 (patch) | |
tree | 2ff478255a77a55031056790918b6f983bb7b20a /docs/manual/mod/mod_log_config.html.en | |
parent | 86d5cc79d9d6750da8771fdb0c9ab22c19b8ad45 (diff) | |
download | apache2-upstream/2.4.9.tar.gz |
Imported Upstream version 2.4.9upstream/2.4.9
Diffstat (limited to 'docs/manual/mod/mod_log_config.html.en')
-rw-r--r-- | docs/manual/mod/mod_log_config.html.en | 32 |
1 files changed, 11 insertions, 21 deletions
diff --git a/docs/manual/mod/mod_log_config.html.en b/docs/manual/mod/mod_log_config.html.en index a8685826..9293b90e 100644 --- a/docs/manual/mod/mod_log_config.html.en +++ b/docs/manual/mod/mod_log_config.html.en @@ -9,7 +9,7 @@ <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" /> -<script src="../style/scripts/prettify.js" type="text/javascript"> +<script src="../style/scripts/prettify.min.js" type="text/javascript"> </script> <link href="../images/favicon.ico" rel="shortcut icon" /></head> @@ -417,14 +417,12 @@ expr=<var>expression</var>]</code></td></tr> <p>For example, the following two sets of directives have exactly the same effect:</p> - <pre class="prettyprint lang-config"> -# CustomLog with format nickname + <pre class="prettyprint lang-config"># CustomLog with format nickname LogFormat "%h %l %u %t \"%r\" %>s %b" common CustomLog logs/access_log common # CustomLog with explicit format string -CustomLog logs/access_log "%h %l %u %t \"%r\" %>s %b" - </pre> +CustomLog logs/access_log "%h %l %u %t \"%r\" %>s %b"</pre> <p>The third argument is optional and controls whether or @@ -443,20 +441,16 @@ CustomLog logs/access_log "%h %l %u %t \"%r\" %>s %b" images on your server in a separate logfile but not in your main log, you can use:</p> - <pre class="prettyprint lang-config"> -SetEnvIf Request_URI \.gif$ gif-image + <pre class="prettyprint lang-config">SetEnvIf Request_URI \.gif$ gif-image CustomLog gif-requests.log common env=gif-image -CustomLog nongif-requests.log common env=!gif-image - </pre> +CustomLog nongif-requests.log common env=!gif-image</pre> <p>Or, to reproduce the behavior of the old RefererIgnore directive, you might use the following:</p> - <pre class="prettyprint lang-config"> -SetEnvIf Referer example\.com localreferer -CustomLog referer.log referer env=!localreferer - </pre> + <pre class="prettyprint lang-config">SetEnvIf Referer example\.com localreferer +CustomLog referer.log referer env=!localreferer</pre> </div> @@ -500,9 +494,7 @@ CustomLog referer.log referer env=!localreferer to define another nickname. Note that the nickname should not contain percent signs (<code>%</code>).</p> - <div class="example"><h3>Example</h3><pre class="prettyprint lang-config"> - LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost_common - </pre> + <div class="example"><h3>Example</h3><pre class="prettyprint lang-config">LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost_common</pre> </div> @@ -525,10 +517,8 @@ CustomLog referer.log referer env=!localreferer which does not define a nickname. Common Log Format is used if no other format has been specified.</p> - <div class="example"><h3>Example</h3><pre class="prettyprint lang-config"> -LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" -TransferLog logs/access_log - </pre> + <div class="example"><h3>Example</h3><pre class="prettyprint lang-config">LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" +TransferLog logs/access_log</pre> </div> </div> @@ -557,7 +547,7 @@ var comments_identifier = 'http://httpd.apache.org/docs/2.4/mod/mod_log_config.h } })(window, document); //--><!]]></script></div><div id="footer"> -<p class="apache">Copyright 2013 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="apache">Copyright 2014 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!-- if (typeof(prettyPrint) !== 'undefined') { prettyPrint(); |