This patch does three things...

1. Prints out 'Summary' at the top of <manualpage> pages.
2. Transforms <seealso> tags within a <manualpage>.
3. Move's an <hr/> tag to keep the consistantcy.


Also included is manual/bind.html.en converted to xml. It's setup with Vincent's recomendation to use relativepath instead of relative-path.

Shane



<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE manualpage SYSTEM "./style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="./style/manual.en.xsl"?>

<manualpage>
  <relativepath href="."/>

  <title>Binding</title>

  <summary>
    Configuring Apache to listen on specific addresses and ports.
  </summary>

  <section id="overview">
    <title>Overview</title>
    
    <related>
      <modulelist>
        <module>core</module>
        <module>mpm_common</module>
      </modulelist>
      <directivelist>
        <directive module="core">VirtualHost</directive>
        <directive module="mpm_common">Listen</directive>
      </directivelist>
    </related>
    
    <p>When Apache starts, it binds to some port and address on
    the local machine and waits for incoming requests. By default,
    it listens to all addresses on the machine.  However, it needs to
    be told to listen on specific ports, or to listen on only selected 
    addresses, or a combination. This is often combined with the 
    Virtual Host feature which determines how Apache responds to 
    different IP addresses, hostnames and ports.</p>

    <p>The <code>Listen</code> directive tells the server to accept
    incoming requests only on the specified port or
    address-and-port combinations. If only a port number is
    specified in the <code>Listen</code> directive, the server
    listens to the given port on all interfaces. If an IP address
    is given as well as a port, the server will listen on the given
    port and interface. Multiple Listen directives may be used to
    specify a number of addresses and ports to listen on. The
    server will respond to requests from any of the listed
    addresses and ports.</p>

    <p>For example, to make the server accept connections on both
    port 80 and port 8000, use:</p>

    <example>
      Listen 80<br />
      Listen 8000
    </example>

    <p>To make the server accept connections on two specified
    interfaces and port numbers, use</p>

    <example>
      Listen 192.170.2.1:80<br />
      Listen 192.170.2.5:8000
    </example>

    <p>IPv6 addresses must be surrounded in square brackets, as in the
    following example:</p>

    <example>
      Listen [fe80::a00:20ff:fea7:ccea]:80
    </example>
  </section>

  <section id="ipv6">
    <title>Special IPv6 Considerations</title>

    <p>When APR supports IPv6, Apache will create IPv6-capable listening
    sockets by default (i.e., when no IP address is specified on the
    Listen directive).  In other words, when APR supports IPv6,</p>

    <example>
      Listen 80
    </example>

    <p>is equivalent to</p>

    <example>
      Listen [::]:80
    </example>

    <p>When APR does not support IPv6,</p>

    <example>
      Listen 80
    </example>

    <p>is equivalent to</p>

    <example>
      Listen 0.0.0.0:80
    </example>

    <p>On some platforms, such as NetBSD, binding to the IPv6 wildcard address 
    ("::") does not allow Apache to accept connections on IPv4 interfaces.
    In this situation, multiple Listen directives are required, as shown
    below:</p>

    <example>
      Listen 0.0.0.0:80<br />
      Listen [::]:0
    </example>

    <p>Apache does not currently detect this, so the Listen statements must
    be edited manually by the administrator.</p>
  </section>

  <section id="virtualhost">
    <title>How This Works With Virtual Hosts</title>

    <p>Listen does not implement Virtual Hosts. It only tells the
    main server what addresses and ports to listen to. If no
    &lt;VirtualHost&gt; directives are used, the server will behave
    the same for all accepted requests. However,
    &lt;VirtualHost&gt; can be used to specify a different behavior
    for one or more of the addresses and ports. To implement a
    VirtualHost, the server must first be told to listen to the
    address and port to be used. Then a &lt;VirtualHost&gt; section
    should be created for a specified address and port to set the
    behavior of this virtual host. Note that if the
    &lt;VirtualHost&gt; is set for an address and port that the
    server is not listening to, it cannot be accessed.</p>
  </section>

  <seealso><a href="vhosts/">Virtual Hosts</a></seealso>
  <seealso><a href="dns-caveats.html">DNS Issues</a></seealso>
</manualpage>




Index: common.xsl
===================================================================
RCS file: /home/cvspublic/httpd-2.0/docs/manual/style/common.xsl,v
retrieving revision 1.6
diff -u -r1.6 common.xsl
--- common.xsl  26 Jul 2002 17:43:20 -0000      1.6
+++ common.xsl  26 Jul 2002 22:45:37 -0000
@@ -143,14 +143,27 @@
           </div>
           <h1 align="center"><xsl:value-of select="title"/></h1>
 
-          <xsl:apply-templates select="summary"/>
+          <xsl:if test="summary">
+            <h2><xsl:value-of select="$messages/[EMAIL 
PROTECTED]'summary']"/></h2>
+            <xsl:apply-templates select="summary"/>
+          </xsl:if>
           
           <ul>
          <xsl:apply-templates select="section" mode="index"/>
           </ul>
 
-          <hr/>
+          <xsl:if test="seealso">
+            <p><strong><xsl:value-of
+            select="$messages/[EMAIL PROTECTED]'seealso']"/></strong></p>
+            <ul>
+              <xsl:for-each select="seealso">
+                <li><xsl:apply-templates/></li>
+              </xsl:for-each>
+            </ul>
+          </xsl:if>
+
           <xsl:apply-templates select="section"/>
+          <hr/>
        </blockquote>
         <!-- Page footer -->
         <h3 align="center"><xsl:value-of





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to