]> granicus.if.org Git - apache/commitdiff
Quote log-sink arguments for {Custom,Error,Transfer}Log directive.
authorKen Coar <coar@apache.org>
Fri, 17 Apr 2015 03:10:18 +0000 (03:10 +0000)
committerKen Coar <coar@apache.org>
Fri, 17 Apr 2015 03:10:18 +0000 (03:10 +0000)
Except syslog and journal, which are keywords.  There's no harm
in quoting those, but no real point to it, either.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1674195 13f79535-47bb-0310-9956-ffa450edef68

30 files changed:
docs/manual/env.html.en
docs/manual/env.xml
docs/manual/logs.html.en
docs/manual/logs.xml
docs/manual/misc/perf-scaling.html.en
docs/manual/misc/perf-scaling.xml
docs/manual/mod/core.html.en
docs/manual/mod/core.xml
docs/manual/mod/mod_cache.html.en
docs/manual/mod/mod_cache.xml
docs/manual/mod/mod_deflate.html.en
docs/manual/mod/mod_deflate.xml
docs/manual/mod/mod_log_config.html.en
docs/manual/mod/mod_log_config.xml
docs/manual/mod/mod_macro.html.en
docs/manual/mod/mod_macro.xml
docs/manual/mod/mod_ssl.html.en
docs/manual/mod/mod_ssl.xml
docs/manual/mod/mod_usertrack.html.en
docs/manual/mod/mod_usertrack.xml
docs/manual/programs/split-logfile.html.en
docs/manual/programs/split-logfile.xml
docs/manual/rewrite/flags.html.en
docs/manual/rewrite/flags.xml
docs/manual/rewrite/vhosts.html.en
docs/manual/rewrite/vhosts.xml
docs/manual/vhosts/fd-limits.html.en
docs/manual/vhosts/fd-limits.xml
docs/manual/vhosts/mass.html.en
docs/manual/vhosts/mass.xml

index 659cdb52dc8c5cbf99b80e61fe1f6b82517925fb..6f424c763b8123e86498c1de691d41a1ed1756f7 100644 (file)
@@ -468,7 +468,7 @@ BrowserMatch "JDK/1\.0" force-response-1.0</pre>
         <pre class="prettyprint lang-config">SetEnvIf Request_URI \.gif image-request
 SetEnvIf Request_URI \.jpg image-request
 SetEnvIf Request_URI \.png image-request
-CustomLog logs/access_log common env=!image-request</pre>
+CustomLog "logs/access_log" common env=!image-request</pre>
 
 
     
index 3cda1acc64036cc8dd3e52c2c365c0cd0d24e837..db8c204c7c95410198b3f42123b13cf6919c09b9 100644 (file)
@@ -509,7 +509,7 @@ BrowserMatch "JDK/1\.0" force-response-1.0
 SetEnvIf Request_URI \.gif image-request
 SetEnvIf Request_URI \.jpg image-request
 SetEnvIf Request_URI \.png image-request
-CustomLog logs/access_log common env=!image-request
+CustomLog "logs/access_log" common env=!image-request
         </highlight>
 
     </section>
index 4c4c58dd73ed860d773489178e9063219326f4fb..21b6e2413f00ddce354766ddf836b6334ab4772d 100644 (file)
       follows.</p>
 
       <pre class="prettyprint lang-config">LogFormat "%h %l %u %t \"%r\" %&gt;s %b" common
-CustomLog logs/access_log common</pre>
+CustomLog "logs/access_log" common</pre>
 
 
       <p>This defines the <em>nickname</em> <code>common</code> and
@@ -359,7 +359,7 @@ CustomLog logs/access_log common</pre>
       Log Format. It can be used as follows.</p>
 
       <pre class="prettyprint lang-config">LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-agent}i\"" combined
-CustomLog log/access_log combined</pre>
+CustomLog "log/access_log" combined</pre>
 
 
       <p>This format is exactly the same as the Common Log Format,
@@ -409,9 +409,9 @@ CustomLog log/access_log combined</pre>
       to mimic the effects of the <code>ReferLog</code> and <code>AgentLog</code> directives.</p>
 
       <pre class="prettyprint lang-config">LogFormat "%h %l %u %t \"%r\" %&gt;s %b" common
-CustomLog logs/access_log common
-CustomLog logs/referer_log "%{Referer}i -&gt; %U"
-CustomLog logs/agent_log "%{User-agent}i"</pre>
+CustomLog "logs/access_log" common
+CustomLog "logs/referer_log" "%{Referer}i -&gt; %U"
+CustomLog "logs/agent_log" "%{User-agent}i"</pre>
 
 
       <p>This example also shows that it is not necessary to define a
@@ -437,16 +437,16 @@ SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
 # Mark requests for the robots.txt file
 SetEnvIf Request_URI "^/robots\.txt$" dontlog
 # Log what remains
-CustomLog logs/access_log common env=!dontlog</pre>
+CustomLog "logs/access_log" common env=!dontlog</pre>
 
 
       <p>As another example, consider logging requests from
       english-speakers to one log file, and non-english speakers to a
       different log file.</p>
 
-      <pre class="prettyprint lang-config">        SetEnvIf Accept-Language "en" english<br />
-        CustomLog logs/english_log common env=english<br />
-        CustomLog logs/non_english_log common env=!english</pre>
+      <pre class="prettyprint lang-config">SetEnvIf Accept-Language "en" english<br />
+CustomLog "logs/english_log" common env=english<br />
+CustomLog "logs/non_english_log" common env=!english</pre>
 
 
       <p>In a caching scenario one would want to know about
@@ -455,7 +455,7 @@ CustomLog logs/access_log common env=!dontlog</pre>
 
       <pre class="prettyprint lang-config">SetEnv CACHE_MISS 1
 LogFormat "%h %l %u %t "%r " %&gt;s %b %{CACHE_MISS}e" common-cache
-CustomLog logs/access_log common-cache</pre>
+CustomLog "logs/access_log" common-cache</pre>
 
 
       <p><code class="module"><a href="./mod/mod_cache.html">mod_cache</a></code> will run before
@@ -621,7 +621,7 @@ CustomLog "|$/usr/local/apache/bin/rotatelogs   /var/log/access_log 86400" commo
     consider the following directives.</p>
 
     <pre class="prettyprint lang-config">LogFormat "%v %l %u %t \"%r\" %&gt;s %b" comonvhost
-CustomLog logs/access_log comonvhost</pre>
+CustomLog "logs/access_log" comonvhost</pre>
 
 
     <p>The <code>%v</code> is used to log the name of the virtual
index da135778b37ed00f112a7e8d8c16117330667a31..35528372536c3f687142bd5f9d96ef6f484f091d 100644 (file)
 
       <highlight language="config">
 LogFormat "%h %l %u %t \"%r\" %&gt;s %b" common
-CustomLog logs/access_log common
+CustomLog "logs/access_log" common
       </highlight>
 
       <p>This defines the <em>nickname</em> <code>common</code> and
@@ -383,7 +383,7 @@ CustomLog logs/access_log common
 
       <highlight language="config">
 LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-agent}i\"" combined
-CustomLog log/access_log combined
+CustomLog "log/access_log" combined
       </highlight>
 
       <p>This format is exactly the same as the Common Log Format,
@@ -436,9 +436,9 @@ CustomLog log/access_log combined
 
       <highlight language="config">
 LogFormat "%h %l %u %t \"%r\" %&gt;s %b" common
-CustomLog logs/access_log common
-CustomLog logs/referer_log "%{Referer}i -&gt; %U"
-CustomLog logs/agent_log "%{User-agent}i"
+CustomLog "logs/access_log" common
+CustomLog "logs/referer_log" "%{Referer}i -&gt; %U"
+CustomLog "logs/agent_log" "%{User-agent}i"
       </highlight>
 
       <p>This example also shows that it is not necessary to define a
@@ -469,7 +469,7 @@ SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
 # Mark requests for the robots.txt file
 SetEnvIf Request_URI "^/robots\.txt$" dontlog
 # Log what remains
-CustomLog logs/access_log common env=!dontlog
+CustomLog "logs/access_log" common env=!dontlog
       </highlight>
 
       <p>As another example, consider logging requests from
@@ -477,9 +477,9 @@ CustomLog logs/access_log common env=!dontlog
       different log file.</p>
 
       <highlight language="config">
-        SetEnvIf Accept-Language "en" english<br />
-        CustomLog logs/english_log common env=english<br />
-        CustomLog logs/non_english_log common env=!english
+SetEnvIf Accept-Language "en" english<br />
+CustomLog "logs/english_log" common env=english<br />
+CustomLog "logs/non_english_log" common env=!english
       </highlight>
 
       <p>In a caching scenario one would want to know about
@@ -489,7 +489,7 @@ CustomLog logs/access_log common env=!dontlog
       <highlight language="config">
 SetEnv CACHE_MISS 1
 LogFormat "%h %l %u %t "%r " %>s %b %{CACHE_MISS}e" common-cache
-CustomLog logs/access_log common-cache
+CustomLog "logs/access_log" common-cache
       </highlight>
 
       <p><module>mod_cache</module> will run before
@@ -586,7 +586,7 @@ LogFormat "%!200,304,302{Referer}i" refererlog
     can use:</p>
 
     <highlight language="config">
-      CustomLog "|/usr/local/apache/bin/rotatelogs /var/log/access_log 86400" common
+CustomLog "|/usr/local/apache/bin/rotatelogs /var/log/access_log 86400" common
     </highlight>
 
     <p>Notice that quotes are used to enclose the entire command
@@ -664,7 +664,7 @@ CustomLog "|$/usr/local/apache/bin/rotatelogs   /var/log/access_log 86400" commo
 
     <highlight language="config">
 LogFormat "%v %l %u %t \"%r\" %&gt;s %b" comonvhost
-CustomLog logs/access_log comonvhost
+CustomLog "logs/access_log" comonvhost
     </highlight>
 
     <p>The <code>%v</code> is used to log the name of the virtual
index b855f8ce74cb62b6d48c5d2ba15154a80d928145..dcb35bc51e447d6d763767a664f750fdea4db86b 100644 (file)
@@ -620,8 +620,8 @@ Swap:       3903784      12540  3891244</pre></div>
                     a pipe character (<code>|</code>). For instance:
                 </p>
 
-                <div class="example"><p><code>CustomLog "|/usr/local/apache2/bin/rotatelogs
-                    /var/log/access_log 86400" common
+                <div class="example"><p><code>
+CustomLog "|/usr/local/apache2/bin/rotatelogs /var/log/access_log 86400" common
                 </code></p></div>
 
                 <p>The program on the other end of the pipe will receive the
@@ -1295,9 +1295,9 @@ Swap:       3903784      12540  3891244</pre></div>
       &lt;/Directory&gt;
       RewriteLog "/home/sctemme/inst/blog/httpd/logs/rewrite_log"
       RewriteLogLevel 9
-      ErrorLog /home/sctemme/inst/blog/httpd/logs/error_log
+      ErrorLog "/home/sctemme/inst/blog/httpd/logs/error_log"
       LogLevel debug
-      CustomLog /home/sctemme/inst/blog/httpd/logs/access_log common
+      CustomLog "/home/sctemme/inst/blog/httpd/logs/access_log" common
       ScriptAlias "/cgi-bin/" "/home/sctemme/inst/blog/bin/"
       &lt;Directory "/home/sctemme/inst/blog/bin"&gt;
           Options +ExecCGI
index 701b8321bbdb966ff02f0d2f852ea51a8d6d1517..08792d3522252d32d1e30d1b825bea37f865d33f 100644 (file)
@@ -619,8 +619,8 @@ Swap:       3903784      12540  3891244
                     a pipe character (<code>|</code>). For instance:
                 </p>
 
-                <example>CustomLog "|/usr/local/apache2/bin/rotatelogs
-                    /var/log/access_log 86400" common
+                <example>
+CustomLog "|/usr/local/apache2/bin/rotatelogs /var/log/access_log 86400" common
                 </example>
 
                 <p>The program on the other end of the pipe will receive the
@@ -1294,9 +1294,9 @@ Listen *:8001
       &lt;/Directory&gt;
       RewriteLog "/home/sctemme/inst/blog/httpd/logs/rewrite_log"
       RewriteLogLevel 9
-      ErrorLog /home/sctemme/inst/blog/httpd/logs/error_log
+      ErrorLog "/home/sctemme/inst/blog/httpd/logs/error_log"
       LogLevel debug
-      CustomLog /home/sctemme/inst/blog/httpd/logs/access_log common
+      CustomLog "/home/sctemme/inst/blog/httpd/logs/access_log" common
       ScriptAlias "/cgi-bin/" "/home/sctemme/inst/blog/bin/"
       &lt;Directory "/home/sctemme/inst/blog/bin"&gt;
           Options +ExecCGI
index 7ff7cc614ca2017768ec953f510a0bf57aaec446..2efebcf46395cc89206b4bc5ee07ce2cda722270 100644 (file)
@@ -4540,8 +4540,8 @@ hostname or IP address</td></tr>
   ServerAdmin webmaster@host.example.com
   DocumentRoot "/www/docs/host.example.com"
   ServerName host.example.com
-  ErrorLog logs/host.example.com-error_log
-  TransferLog logs/host.example.com-access_log
+  ErrorLog "logs/host.example.com-error_log"
+  TransferLog "logs/host.example.com-access_log"
 &lt;/VirtualHost&gt;</pre>
 
 
@@ -4554,8 +4554,8 @@ hostname or IP address</td></tr>
   ServerAdmin webmaster@host.example.com
   DocumentRoot "/www/docs/host.example.com"
   ServerName host.example.com
-  ErrorLog logs/host.example.com-error_log
-  TransferLog logs/host.example.com-access_log
+  ErrorLog "logs/host.example.com-error_log"
+  TransferLog "logs/host.example.com-access_log"
 &lt;/VirtualHost&gt;</pre>
 
 
index f8fd4933c2e91b1fa17a98949449d25622304a53..da9be22cb27f98dfe8b0dab6bc7ae94e055faf7a 100644 (file)
@@ -4553,8 +4553,8 @@ hostname or IP address</description>
   ServerAdmin webmaster@host.example.com
   DocumentRoot "/www/docs/host.example.com"
   ServerName host.example.com
-  ErrorLog logs/host.example.com-error_log
-  TransferLog logs/host.example.com-access_log
+  ErrorLog "logs/host.example.com-error_log"
+  TransferLog "logs/host.example.com-access_log"
 &lt;/VirtualHost&gt;
     </highlight>
 
@@ -4568,8 +4568,8 @@ hostname or IP address</description>
   ServerAdmin webmaster@host.example.com
   DocumentRoot "/www/docs/host.example.com"
   ServerName host.example.com
-  ErrorLog logs/host.example.com-error_log
-  TransferLog logs/host.example.com-access_log
+  ErrorLog "logs/host.example.com-error_log"
+  TransferLog "logs/host.example.com-access_log"
 &lt;/VirtualHost&gt;
     </highlight>
 
index 71a11223962e607227ada36d255b5f55fc7d6e96..c67690eaf4a644f5565de16b2148ce850a66bdb0 100644 (file)
@@ -337,10 +337,10 @@ AddOutputFilterByType INCLUDES;CACHE;DEFLATE text/html</pre>
   <p>This makes it possible to support conditional logging of cached requests
   as per the following example:</p>
 
-  <pre class="prettyprint lang-config">CustomLog cached-requests.log common env=cache-hit
-CustomLog uncached-requests.log common env=cache-miss
-CustomLog revalidated-requests.log common env=cache-revalidate
-CustomLog invalidated-requests.log common env=cache-invalidate</pre>
+  <pre class="prettyprint lang-config">CustomLog "cached-requests.log" common env=cache-hit
+CustomLog "uncached-requests.log" common env=cache-miss
+CustomLog "revalidated-requests.log" common env=cache-revalidate
+CustomLog "invalidated-requests.log" common env=cache-invalidate</pre>
 
 
   <p>For module authors, a hook called <var>cache_status</var> is available,
index 8afde7fc0d066d3ceadc8482fd1173afa3595e0d..4f68feca8640c8d0a712dee8f0c082d27a6db351 100644 (file)
@@ -327,10 +327,10 @@ AddOutputFilterByType INCLUDES;CACHE;DEFLATE text/html
   as per the following example:</p>
 
   <highlight language="config">
-CustomLog cached-requests.log common env=cache-hit
-CustomLog uncached-requests.log common env=cache-miss
-CustomLog revalidated-requests.log common env=cache-revalidate
-CustomLog invalidated-requests.log common env=cache-invalidate
+CustomLog "cached-requests.log" common env=cache-hit
+CustomLog "uncached-requests.log" common env=cache-miss
+CustomLog "revalidated-requests.log" common env=cache-revalidate
+CustomLog "invalidated-requests.log" common env=cache-invalidate
   </highlight>
 
   <p>For module authors, a hook called <var>cache_status</var> is available,
index 6a1b064b12474a63785a4ca5ba418d94082f80c5..eea05440ddbd3c91bc751bd60a70addf988a5257 100644 (file)
@@ -310,7 +310,7 @@ content</a></h2>
     <div class="example"><h3>Example</h3><pre class="prettyprint lang-config">      DeflateFilterNote ratio
 
       LogFormat '"%r" %b (%{ratio}n) "%{User-agent}i"' deflate
-      CustomLog logs/deflate_log deflate</pre>
+      CustomLog "logs/deflate_log" deflate</pre>
 </div>
 
     <p>If you want to extract more accurate values from your logs, you
@@ -337,7 +337,7 @@ DeflateFilterNote Output outstream
 DeflateFilterNote Ratio ratio
 
 LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
-CustomLog logs/deflate_log deflate</pre>
+CustomLog "logs/deflate_log" deflate</pre>
 </div>
 
 <h3>See also</h3>
index 49749bac6eba3bbc9b58a12e059802fe1753dc9d..37fc18e95684ed471dbe5818c62046bbd93740a2 100644 (file)
@@ -240,7 +240,7 @@ content</title>
       DeflateFilterNote ratio
 
       LogFormat '"%r" %b (%{ratio}n) "%{User-agent}i"' deflate
-      CustomLog logs/deflate_log deflate
+      CustomLog "logs/deflate_log" deflate
       </highlight>
     </example>
 
@@ -270,7 +270,7 @@ DeflateFilterNote Output outstream
 DeflateFilterNote Ratio ratio
 
 LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
-CustomLog logs/deflate_log deflate
+CustomLog "logs/deflate_log" deflate
 </highlight>
     </example>
 </usage>
index 333c3b49e88ea6bfbd3bf47ccedcae6710bf2bb1..7f5765882b31de2d8ffb930dc5da1f4b29441ddf 100644 (file)
@@ -433,10 +433,10 @@ expr=<var>expression</var>]</code></td></tr>
 
     <pre class="prettyprint lang-config"># CustomLog with format nickname
 LogFormat "%h %l %u %t \"%r\" %&gt;s %b" common
-CustomLog logs/access_log common
+CustomLog "logs/access_log" common
 
 # CustomLog with explicit format string
-CustomLog logs/access_log "%h %l %u %t \"%r\" %&gt;s %b"</pre>
+CustomLog "logs/access_log" "%h %l %u %t \"%r\" %&gt;s %b"</pre>
 
 
     <p>The third argument is optional and controls whether or
@@ -456,15 +456,15 @@ CustomLog logs/access_log "%h %l %u %t \"%r\" %&gt;s %b"</pre>
     log, you can use:</p>
 
     <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 "gif-requests.log" common env=gif-image
+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>
+CustomLog "referer.log" referer env=!localreferer</pre>
 
 
 </div>
@@ -532,7 +532,7 @@ CustomLog referer.log referer env=!localreferer</pre>
     other format has been specified.</p>
 
     <div class="example"><h3>Example</h3><pre class="prettyprint lang-config">LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-agent}i\""
-TransferLog logs/access_log</pre>
+TransferLog "logs/access_log"</pre>
 </div>
 
 </div>
index ea097a6c4c946c8ae8de3646dd1537fc7253f38d..f40fb0b68cdd80085d4dbf6656ffd00f8c68ddcc 100644 (file)
@@ -471,10 +471,10 @@ expr=<var>expression</var>]</syntax>
     <highlight language="config">
 # CustomLog with format nickname
 LogFormat "%h %l %u %t \"%r\" %&gt;s %b" common
-CustomLog logs/access_log common
+CustomLog "logs/access_log" common
 
 # CustomLog with explicit format string
-CustomLog logs/access_log "%h %l %u %t \"%r\" %&gt;s %b"
+CustomLog "logs/access_log" "%h %l %u %t \"%r\" %&gt;s %b"
     </highlight>
 
     <p>The third argument is optional and controls whether or
@@ -496,8 +496,8 @@ CustomLog logs/access_log "%h %l %u %t \"%r\" %&gt;s %b"
 
     <highlight language="config">
 SetEnvIf Request_URI \.gif$ gif-image
-CustomLog gif-requests.log common env=gif-image
-CustomLog nongif-requests.log common env=!gif-image
+CustomLog "gif-requests.log" common env=gif-image
+CustomLog "nongif-requests.log" common env=!gif-image
     </highlight>
 
     <p>Or, to reproduce the behavior of the old RefererIgnore
@@ -505,7 +505,7 @@ CustomLog nongif-requests.log common env=!gif-image
 
     <highlight language="config">
 SetEnvIf Referer example\.com localreferer
-CustomLog referer.log referer env=!localreferer
+CustomLog "referer.log" referer env=!localreferer
     </highlight>
 </usage>
 </directivesynopsis>
@@ -578,7 +578,7 @@ CustomLog referer.log referer env=!localreferer
     <example><title>Example</title>
     <highlight language="config">
 LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-agent}i\""
-TransferLog logs/access_log
+TransferLog "logs/access_log"
       </highlight>
     </example>
 </usage>
index e184ba4e8737ddbddec7ec3240954648e8843f32..beb892ba5eaf2db04789729bf11a7466327846cf 100644 (file)
@@ -70,8 +70,8 @@ multiple similar virtual hosts:</p>
     ServerAlias www.$domain
 
     DocumentRoot "/var/www/vhosts/$name"
-    ErrorLog /var/log/httpd/$name.error_log
-    CustomLog /var/log/httpd/$name.access_log combined
+    ErrorLog "/var/log/httpd/$name.error_log"
+    CustomLog "/var/log/httpd/$name.access_log" combined
 &lt;/VirtualHost&gt;
 &lt;/Macro&gt;</pre>
 
index 471b7c1d4f40b091358087cabd2e3e6435b15a17..a555e4af9f8c282a85084ab4c560dfec80042e5d 100644 (file)
@@ -56,8 +56,8 @@ multiple similar virtual hosts:</p>
     ServerAlias www.$domain
 
     DocumentRoot "/var/www/vhosts/$name"
-    ErrorLog /var/log/httpd/$name.error_log
-    CustomLog /var/log/httpd/$name.access_log combined
+    ErrorLog "/var/log/httpd/$name.error_log"
+    CustomLog "/var/log/httpd/$name.access_log" combined
 &lt;/VirtualHost&gt;
 &lt;/Macro&gt;
 </highlight>
index 7c2e8bd8ce78d7021fe7b1b4aec6c9354a3be634..8f454e775607a8cf17b36b45faa15ac31074b30c 100644 (file)
@@ -254,7 +254,7 @@ you find in the above table.</p>
 For backward compatibility there is additionally a special
 ``<code>%{</code><em>name</em><code>}c</code>'' cryptography format function
 provided. Information about this function is provided in the <a href="../ssl/ssl_compat.html">Compatibility</a> chapter.</p>
-<div class="example"><h3>Example</h3><pre class="prettyprint lang-config">CustomLog logs/ssl_request_log "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"</pre>
+<div class="example"><h3>Example</h3><pre class="prettyprint lang-config">CustomLog "logs/ssl_request_log" "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"</pre>
 </div>
 </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="section">
index 1ebf1cbad6dedd47913f4fad615a3312eddc97ac..82d0517acaace0eab762ccd6d4050f8f3f89654d 100644 (file)
@@ -178,7 +178,7 @@ provided. Information about this function is provided in the <a
 href="../ssl/ssl_compat.html">Compatibility</a> chapter.</p>
 <example><title>Example</title>
 <highlight language="config">
-CustomLog logs/ssl_request_log "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
+CustomLog "logs/ssl_request_log" "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
 </highlight>
 </example>
 </section>
index a3a258a6cdda8aabb58c04b1942f76161f6b5d59..ae3830404770f55f1044a8f1cb3f151015d9bbfc 100644 (file)
@@ -58,7 +58,7 @@
     via <code class="module"><a href="../mod/mod_log_config.html">mod_log_config</a></code> configurable logging formats:</p>
 
     <pre class="prettyprint lang-config">LogFormat "%{Apache}n %r %t" usertrack
-CustomLog logs/clickstream.log usertrack</pre>
+CustomLog "logs/clickstream.log" usertrack</pre>
 
 
 </div>
index acaf6b3be81dfba1f250c478295043cf31610287..c85294c838fee703710c956f1f317ad462a53231 100644 (file)
@@ -43,7 +43,7 @@
 
     <highlight language="config">
 LogFormat "%{Apache}n %r %t" usertrack
-CustomLog logs/clickstream.log usertrack
+CustomLog "logs/clickstream.log" usertrack
     </highlight>
 
 </section>
index 57dc5cc5cb708be031a5c66005c50b3f721058f4..6635623a21e6d835d6d18a446968736c26374bc4 100644 (file)
@@ -37,7 +37,7 @@
     <p>Create a log file with virtual host information in it:</p>
 
     <pre class="prettyprint lang-config">LogFormat "%v %h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-agent}i\"" combined_plus_vhost
-CustomLog logs/access_log combined_plus_vhost</pre>
+CustomLog "logs/access_log" combined_plus_vhost</pre>
 
 
     <p>Log files will be created, in the directory where you run the
index 63f8f8a43ed38173a7871b64b16d258f1119c544..2e44c51b6715958537e5ac3e1b7a3d993c64df1a 100644 (file)
@@ -39,7 +39,7 @@
 
     <highlight language="config">
 LogFormat "%v %h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-agent}i\"" combined_plus_vhost
-CustomLog logs/access_log combined_plus_vhost
+CustomLog "logs/access_log" combined_plus_vhost
     </highlight>
 
     <p>Log files will be created, in the directory where you run the
index e0f65fc9d5597f53c9c459e76e5c21f356a0dbb3..d1090ffcd21308ffe7799abbac9c6da9186275f9 100644 (file)
@@ -273,7 +273,7 @@ environment variable is used to exclude those requests from the access
 log.</p>
 
 <pre class="prettyprint lang-config">RewriteRule "\.(png|gif|jpg)$"   "-" [E=image:1]
-CustomLog   logs/access_log      combined env=!image</pre>
+CustomLog   "logs/access_log"    combined env=!image</pre>
 
 
 <p>Note that this same effect can be obtained using <code class="directive"><a href="../mod/mod_setenvif.html#setenvif">SetEnvIf</a></code>. This technique is offered as
index b3bccb2584076455349d0a7a8ebe2e2d14774ce2..58eaae5e00d1c09ed53171aa9f67cb48f993fa29 100644 (file)
@@ -268,7 +268,7 @@ log.</p>
 
 <highlight language="config">
 RewriteRule "\.(png|gif|jpg)$"   "-" [E=image:1]
-CustomLog   logs/access_log      combined env=!image
+CustomLog   "logs/access_log"    combined env=!image
 </highlight>
 
 <p>Note that this same effect can be obtained using <directive
index 8ad14c9eb04f0f1a48a55e883d743a188dad4527..c52196a7ae0a4d7e707a411011599a5b92274179 100644 (file)
@@ -126,7 +126,7 @@ UseCanonicalName Off
 
 # splittable logs
 LogFormat "%{Host}i %h %l %u %t \"%r\" %s %b" vcommon
-CustomLog logs/access_log vcommon
+CustomLog "logs/access_log" vcommon
 
 &lt;Directory "/www/hosts"&gt;
     # ExecCGI is needed here because we can't force
index 1cea3de0878bf14902a6fcb281d2d284eea79322..757cc83aa1d75236aa0bc4844531340b170d3379 100644 (file)
@@ -135,7 +135,7 @@ UseCanonicalName Off
 
 # splittable logs
 LogFormat "%{Host}i %h %l %u %t \"%r\" %s %b" vcommon
-CustomLog logs/access_log vcommon
+CustomLog "logs/access_log" vcommon
 
 &lt;Directory "/www/hosts"&gt;
     # ExecCGI is needed here because we can't force
index 4b27cd4185005ae420b9d0f70139b3051c8c8e9b..3de52595758cc12fa287e0f3d32802b1980b940e 100644 (file)
@@ -95,7 +95,7 @@ directive, and the <code>%v</code> variable. Add this to the beginning
 of your log format string:</p>
 
 <pre class="prettyprint lang-config">LogFormat "%v %h %l %u %t \"%r\" %&gt;s %b" vhost
-CustomLog logs/multiple_vhost_log vhost</pre>
+CustomLog "logs/multiple_vhost_log" vhost</pre>
 
 
 <p>This will create a log file in the common log format, but with the
index 56c78c24b70d064e18165fa3cc232a968f34ab41..01091ee2ec967cf953abac6c878fac68bcb5fd6b 100644 (file)
@@ -93,7 +93,7 @@ of your log format string:</p>
 
 <highlight language="config">
 LogFormat "%v %h %l %u %t \"%r\" %&gt;s %b" vhost
-CustomLog logs/multiple_vhost_log vhost
+CustomLog "logs/multiple_vhost_log" vhost
 </highlight>
 
 <p>This will create a log file in the common log format, but with the
index 1b98c65211231177811965ed256149c95497ec0a..d021778b1d7e62441f29d4b23c01fbe858086b20 100644 (file)
@@ -163,7 +163,7 @@ UseCanonicalName Off
 # this log format can be split per-virtual-host based on the first field
 # using the split-logfile utility.
 LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
-CustomLog logs/access_log vcommon
+CustomLog "logs/access_log" vcommon
 
 # include the server name in the filenames used to satisfy requests
 VirtualDocumentRoot "/www/hosts/%0/docs"
@@ -196,7 +196,7 @@ examples.</p>
 <pre class="prettyprint lang-config">UseCanonicalName Off
 
 LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
-CustomLog logs/access_log vcommon
+CustomLog "logs/access_log" vcommon
 
 # include part of the server name in the filenames
 VirtualDocumentRoot "/home/%2/www"
@@ -240,7 +240,7 @@ LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
 &lt;VirtualHost 111.22.33.44&gt;
     ServerName www.commercial.example.com
 
-    CustomLog logs/access_log.commercial vcommon
+    CustomLog "logs/access_log.commercial" vcommon
 
     VirtualDocumentRoot "/www/commercial/%0/docs"
     VirtualScriptAlias  "/www/commercial/%0/cgi-bin"
@@ -249,7 +249,7 @@ LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
 &lt;VirtualHost 111.22.33.45&gt;
     ServerName www.homepages.example.com
 
-    CustomLog logs/access_log.homepages vcommon
+    CustomLog "logs/access_log.homepages" vcommon
 
     VirtualDocumentRoot "/www/homepages/%0/docs"
     ScriptAlias         "/cgi-bin/" "/www/std-cgi/"
@@ -284,7 +284,7 @@ UseCanonicalName DNS
 
 # include the IP address in the logs so they may be split
 LogFormat "%A %h %l %u %t \"%r\" %s %b" vcommon
-CustomLog logs/access_log vcommon
+CustomLog "logs/access_log" vcommon
 
 # include the IP address in the filenames
 VirtualDocumentRootIP "/www/hosts/%0/docs"
index ea52263c2f7578bfb98afbeebcc45265ee8279a1..3c7c7db0487906dd5dd7798a2b9c77324ef116f3 100644 (file)
@@ -154,7 +154,7 @@ UseCanonicalName Off
 # this log format can be split per-virtual-host based on the first field
 # using the split-logfile utility.
 LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
-CustomLog logs/access_log vcommon
+CustomLog "logs/access_log" vcommon
 
 # include the server name in the filenames used to satisfy requests
 VirtualDocumentRoot "/www/hosts/%0/docs"
@@ -188,7 +188,7 @@ examples.</p>
 UseCanonicalName Off
 
 LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
-CustomLog logs/access_log vcommon
+CustomLog "logs/access_log" vcommon
 
 # include part of the server name in the filenames
 VirtualDocumentRoot "/home/%2/www"
@@ -233,7 +233,7 @@ LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
 &lt;VirtualHost 111.22.33.44&gt;
     ServerName www.commercial.example.com
 
-    CustomLog logs/access_log.commercial vcommon
+    CustomLog "logs/access_log.commercial" vcommon
 
     VirtualDocumentRoot "/www/commercial/%0/docs"
     VirtualScriptAlias  "/www/commercial/%0/cgi-bin"
@@ -242,7 +242,7 @@ LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
 &lt;VirtualHost 111.22.33.45&gt;
     ServerName www.homepages.example.com
 
-    CustomLog logs/access_log.homepages vcommon
+    CustomLog "logs/access_log.homepages" vcommon
 
     VirtualDocumentRoot "/www/homepages/%0/docs"
     ScriptAlias         "/cgi-bin/" "/www/std-cgi/"
@@ -278,7 +278,7 @@ UseCanonicalName DNS
 
 # include the IP address in the logs so they may be split
 LogFormat "%A %h %l %u %t \"%r\" %s %b" vcommon
-CustomLog logs/access_log vcommon
+CustomLog "logs/access_log" vcommon
 
 # include the IP address in the filenames
 VirtualDocumentRootIP "/www/hosts/%0/docs"