diff options
author | Rich Bowen <rbowen@apache.org> | 2012-04-26 16:57:35 +0200 |
---|---|---|
committer | Rich Bowen <rbowen@apache.org> | 2012-04-26 16:57:35 +0200 |
commit | 2e5d9d52e1b8e219329c84eea0313d14b7fd5a5c (patch) | |
tree | 6b77c732b713094f1d1c3dc7929fcec938777891 /docs/manual/bind.html.en | |
parent | Syntax for files in / (diff) | |
download | apache2-2e5d9d52e1b8e219329c84eea0313d14b7fd5a5c.tar.xz apache2-2e5d9d52e1b8e219329c84eea0313d14b7fd5a5c.zip |
Rebuild Humbedooh's changes.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1330892 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/bind.html.en')
-rw-r--r-- | docs/manual/bind.html.en | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/docs/manual/bind.html.en b/docs/manual/bind.html.en index 281f1399da..7999aec41a 100644 --- a/docs/manual/bind.html.en +++ b/docs/manual/bind.html.en @@ -68,25 +68,28 @@ <p>For example, to make the server accept connections on both port 80 and port 8000, on all interfaces, use:</p> - <div class="example"><p><code> - Listen 80<br /> - Listen 8000 - </code></p></div> + <pre class="prettyprint lang-config"> +Listen 80 +Listen 8000 + </pre> + <p>To make the server accept connections on port 80 for one interface, and port 8000 on another, use</p> - <div class="example"><p><code> - Listen 192.0.2.1:80<br /> - Listen 192.0.2.5:8000 - </code></p></div> + <pre class="prettyprint lang-config"> +Listen 192.0.2.1:80 +Listen 192.0.2.5:8000 + </pre> + <p>IPv6 addresses must be enclosed in square brackets, as in the following example:</p> - <div class="example"><p><code> + <pre class="prettyprint lang-config"> Listen [2001:db8::a00:20ff:fea7:ccea]:80 - </code></p></div> + </pre> + <div class="warning"><p>Overlapping <code class="directive"><a href="./mod/mpm_common.html#listen">Listen</a></code> directives will result in a fatal error which will prevent the server from starting up.</p> @@ -131,10 +134,11 @@ <code class="directive"><a href="./mod/mpm_common.html#listen">Listen</a></code> directives, as in the following examples:</p> - <div class="example"><p><code> - Listen 0.0.0.0:80<br /> - Listen 192.0.2.1:80 - </code></p></div> + <pre class="prettyprint lang-config"> +Listen 0.0.0.0:80 +Listen 192.0.2.1:80 + </pre> + <p>If your platform supports it and you want httpd to handle IPv4 and IPv6 connections on separate sockets (i.e., to disable IPv4-mapped @@ -156,9 +160,10 @@ <p>You only need to set the protocol if you are running on non-standard ports. For example, running an <code>https</code> site on port 8443:</p> - <div class="example"><p><code> + <pre class="prettyprint lang-config"> Listen 192.170.2.1:8443 https - </code></p></div> + </pre> + </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> <div class="section"> <h2><a name="virtualhost" id="virtualhost">How This Works With Virtual Hosts</a></h2> |