From: pcs
-This option can be used as an alternative method for supporting
-virtual hosts instead of using
-<VirtualHost> sections.
+Only one
+
+ See Also:
DNS Issues The Listen directive instructs Apache to listen to more than one IP
address or port; by default it responds to requests on all IP
-interfaces, but only on the port given by the Port
-directive.BindAddress
directive can be used. For more
+control over which address and ports Apache listens to, use the
+Listen
directive instead of
+BindAddress
.BindAddress
can be used as an alternative method for
+supporting virtual hosts using
+multiple independent servers, instead of using <VirtualHost>
sections.
@@ -783,8 +789,41 @@ Listen [IP address:]port number
Port
directive.
+ +Note that you may still require a Port directive so +that URLs that Apache generates that point to your server still +work.
+ +Multiple Listen directives may be used +to specify a number of addresses and ports to listen to. The server +will respond to requests from any of the listed addresses and +ports. +
+ +For example, to make the server accept connections on both port +80 and port 8000, use: +
+ Listen 80 + Listen 8000 ++ +To make the server accept connections on two specified +interfaces and port numbers, use +
+ Listen 192.170.2.1:80 + Listen 192.170.2.5:8000 +
See Also:
DNS Issues
@@ -1626,6 +1665,12 @@ document for details on why your security could be compromised if
the directory where logfiles are stored is writable by anyone other
than the user that starts the server.
+
NOTE: The use of <VirtualHost> does +not affect what addresses Apache listens on. You may +need to ensure that Apache is listening on the correct addresses using +either BindAddress or Listen. +
See also:
Warnings about DNS and Apache
See also:
@@ -1634,7 +1679,9 @@ than the user that starts the server.
See also:
Non-IP address-based Virtual Hosts
See also:
-In-depth description of Virtual Host matching
+In-depth description of Virtual Host matching
+See also:
+Setting which addresses and ports Apache uses