<p>For example, to make the server accept connections on both
port 80 and port 8000, on all interfaces, use:</p>
+ <example>
<highlight language="config">
Listen 80
Listen 8000
</highlight>
+ </example>
<p>To make the server accept connections on port 80 for one interface,
and port 8000 on another, use</p>
+ <example>
<highlight language="config">
Listen 192.0.2.1:80
Listen 192.0.2.5:8000
</highlight>
+ </example>
<p>IPv6 addresses must be enclosed in square brackets, as in the
following example:</p>
+ <example>
<highlight language="config">
Listen [2001:db8::a00:20ff:fea7:ccea]:80
</highlight>
+ </example>
<note type="warning"><p>Overlapping <directive
module="mpm_common">Listen</directive> directives will result in a
fatal error which will prevent the server from starting up.</p>
<example>
- (48)Address already in use: make_sock: could not bind to address [::]:80
+ (48)Address already in use: make_sock: could not bind to address [::]:80
</example>
<p>See <a
<directive module="mpm_common">Listen</directive> directives, as in the
following examples:</p>
+ <example>
<highlight language="config">
Listen 0.0.0.0:80
Listen 192.0.2.1:80
</highlight>
+ </example>
<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
<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>
+ <example>
<highlight language="config">
Listen 192.170.2.1:8443 https
</highlight>
+ </example>
</section>
<section id="virtualhost">