]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
xforms
authorEric Covener <covener@apache.org>
Sun, 5 Mar 2023 21:24:59 +0000 (21:24 +0000)
committerEric Covener <covener@apache.org>
Sun, 5 Mar 2023 21:24:59 +0000 (21:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1908102 13f79535-47bb-0310-9956-ffa450edef68

docs/man/rotatelogs.8
docs/manual/mod/mod_md.html.en
docs/manual/mod/mod_md.xml.fr
docs/manual/mod/mod_md.xml.meta
docs/manual/programs/rotatelogs.html.en
docs/manual/programs/rotatelogs.xml.fr
docs/manual/programs/rotatelogs.xml.ko
docs/manual/programs/rotatelogs.xml.meta
docs/manual/programs/rotatelogs.xml.tr

index e7a2e6cb36932ce6011d6b48fa6efbdc6829c860..29c35da3b66a42df108d0a8bfa0ff2b0088d3afa 100644 (file)
@@ -19,7 +19,7 @@
 .el .ne 3
 .IP "\\$1" \\$2
 ..
-.TH "ROTATELOGS" 8 "2023-01-17" "Apache HTTP Server" "rotatelogs"
+.TH "ROTATELOGS" 8 "2023-03-05" "Apache HTTP Server" "rotatelogs"
 
 .SH NAME
 rotatelogs \- Piped logging program to rotate Apache logs
@@ -58,6 +58,9 @@ Creates the parent directories of the path that the log file will be placed in i
 \fB-t\fR
 Causes the logfile to be truncated instead of rotated\&. This is useful when a log is processed in real time by a command like tail, and there is no need for archived data\&. No suffix will be added to the filename, however format strings containing '%' characters will be respected\&.  
 .TP
+\fB-T\fR
+Causes all but the initial logfile to be truncated when opened\&. This is useful when the format string contains something that will loop around, such as the day of the month\&. Available in 2\&.4\&.56 and later\&.  
+.TP
 \fB-v\fR
 Produce verbose output on STDERR\&. The output contains the result of the configuration parsing, and all file open and close actions\&.  
 .TP
@@ -129,6 +132,15 @@ This configuration will rotate the error logfile whenever it reaches a size of 5
 .PP
 This creates the file \fB/var/log/logfile\fR, truncating the file at startup and then truncating the file once per day\&. It is expected in this scenario that a separate process (such as tail) would process the file in real time\&.
  
+.nf
+     CustomLog "|bin/rotatelogs -T /var/log/logfile\&.%d 86400" common
+.fi
+.PP
+If the server is started (or restarted) on the first of the month, this appends to \fB/var/log/logfile\&.01\fR\&. When a log entry is written on the second of the month, \fB/var/log/logfile\&.02\fR is truncated and new entries will be added to the top\&. This example keeps approximately 1 months worth of logs without external maintenance\&.
 .SH "PORTABILITY"
  
 .PP
index 2afe8189097fe48f9fb51a6399c9d974a004640c..95c5e1bdc3a0b933e6140de4b8aaa6ea16d9f2b1 100644 (file)
                 method is possible. However, Let's Encrypt makes 'dns-01' the only
                 challenge available for wildcard certificates. If you require
                 one of those, you need to configure this.
+            </p><p>
+                It is now possible to use this directive inside a <code class="directive"><a href="#mdomain">MDomain</a></code>
+                section to specify a specific command for that domain. This allows to configure
+                a script specific for the particular DNS provider involved.
             </p><p>
                 See the section about wildcard certificates above for more details.
             </p>
index 968dd90c440914ed4767d21bb7c8cd23855f6913..5b9810a4958501e4b69f41b0e18a03c4df95dc47 100644 (file)
@@ -2,7 +2,7 @@
 <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
 <!-- French translation : Lucien GENTIS -->
-<!-- English Revision: 1903678 -->
+<!-- English Revision: 1903678:1908081 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index 252e729dc3de17442518b42a73a089beacfb1c5b..d6793f60423d1f8e253c896ca943b1d60d0d7cb8 100644 (file)
@@ -8,6 +8,6 @@
 
   <variants>
     <variant>en</variant>
-    <variant>fr</variant>
+    <variant outdated="yes">fr</variant>
   </variants>
 </metafile>
index 3f149b9e5ced0a930ed39d21998d1057a69996b4..e768ae89365fe535616f1c1e9aa8e0a0d7a0954d 100644 (file)
@@ -113,6 +113,13 @@ the filename, however format strings containing '%' characters
 will be respected.
 </dd>
 
+<dt><code>-T</code></dt>
+<dd>Causes all but the initial logfile to be truncated when opened.
+This is useful when the format string contains something that will
+loop around, such as the day of the month. Available in 2.4.56 and later.
+</dd>
+
+
 <dt><code>-v</code></dt>
 <dd>Produce verbose output on STDERR. The output contains
 the result of the configuration parsing, and all file open and
@@ -236,6 +243,15 @@ an offset.</dd>
      in this scenario that a separate process (such as tail) would
      process the file in real time.</p>
 
+<div class="example"><pre class="prettyprint lang-config">CustomLog "|bin/rotatelogs -T /var/log/logfile.%d 86400" common</pre>
+</div>
+
+<p>If the server is started (or restarted) on the first of the month, this 
+appends to <code>/var/log/logfile.01</code>.  When a log entry is written on the
+second of the month, <code>/var/log/logfile.02</code> is truncated and new entries
+will be added to the top. This example keeps approximately 1 months worth of 
+logs without external maintenance.</p>
+
 </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="section">
 <h2><a name="portability" id="portability">Portability</a></h2>
index b5b3c6dc4de0f63ef836c59aecef88bcc880e67d..35d8c84b9622cbb836be2db0759f53a3dde380c1 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision : 1903934 -->
+<!-- English Revision: 1903934:1908025 (outdated) -->
 <!-- French translation : Lucien GENTIS -->
 <!-- Reviewed by : Vincent Deffontaines -->
 
index d65716026f456d38bef72658ddda254b5ed7a7d3..dcaa683247e65505ac350738b1e02a616186187c 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version='1.0' encoding='EUC-KR' ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
-<!-- English Revision: 420993:1903934 (outdated) -->
+<!-- English Revision: 420993:1908025 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index a0baa665bfaf96855f80c5795b476f1e2616ae1a..20244d44f281cfb05f525ff84badf3cc5c558aa2 100644 (file)
@@ -8,7 +8,7 @@
 
   <variants>
     <variant>en</variant>
-    <variant>fr</variant>
+    <variant outdated="yes">fr</variant>
     <variant outdated="yes">ko</variant>
     <variant outdated="yes">tr</variant>
   </variants>
index 9bb75cb5a16dc0a4d834787a9c0a939f3735fabf..f1191135e763d4b01365f757673389d44388b28e 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version='1.0' encoding='UTF-8' ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.tr.xsl"?>
-<!-- English Revision: 1899270:1903934 (outdated) -->
+<!-- English Revision: 1899270:1908025 (outdated) -->
 <!-- =====================================================
  Translated by: Nilgün Belma Bugüner <nilgun belgeler.gen.tr>
    Reviewed by: Orhan Berent <berent belgeler.gen.tr>