From b862ffd63167aee6dba8def22c8e275e75827ff9 Mon Sep 17 00:00:00 2001
From: Rich Bowen
httpd
responds to different IP addresses, hostnames and
+ ports.
The Listen
directive tells the server to accept
- incoming requests only on the specified ports or
+ incoming requests only on the specified port(s) or
address-and-port combinations. If only a port number is
specified in the Listen
- 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
+ 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.
Overlapping Listen
+ directives will result in a fatal error which will prevent the
+ server from starting up.
For example, to make the server accept connections on both port 80 and port 8000, on all interfaces, use:
@@ -105,7 +109,7 @@On the other hand, on some platforms, such as Linux and Tru64, the
only way to handle both IPv6 and IPv4 is to use
- mapped addresses. If you want httpd to handle IPv4 and IPv6 connections
+ mapped addresses. If you want httpd
to handle IPv4 and IPv6 connections
with a minimum of sockets, which requires using IPv4-mapped IPv6
addresses, specify the --enable-v4-mapped
configure
option.
httpd
responds to different IP addresses, hostnames and
+ ports.
The
Overlapping
For example, to make the server accept connections on both port 80 and port 8000, on all interfaces, use:
@@ -112,7 +116,7 @@On the other hand, on some platforms, such as Linux and Tru64, the
only way to handle both IPv6 and IPv4 is to use
- mapped addresses. If you want httpd to handle IPv4 and IPv6 connections
+ mapped addresses. If you want httpd
to handle IPv4 and IPv6 connections
with a minimum of sockets, which requires using IPv4-mapped IPv6
addresses, specify the --enable-v4-mapped