Return-Path: Delivered-To: apmail-apache-docs-archive@apache.org Received: (qmail 4603 invoked by uid 500); 2 Jun 2001 20:34:25 -0000 Mailing-List: contact apache-docs-help@apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: apache-docs@apache.org Delivered-To: mailing list apache-docs@apache.org Received: (qmail 4414 invoked by uid 500); 2 Jun 2001 20:34:24 -0000 Delivered-To: apmail-httpd-docs-1.3-cvs@apache.org Date: 2 Jun 2001 20:34:24 -0000 Message-ID: <20010602203424.4410.qmail@apache.org> From: slive@apache.org To: httpd-docs-1.3-cvs@apache.org Subject: cvs commit: httpd-docs-1.3/htdocs/manual bind.html.en slive 01/06/02 13:34:24 Modified: htdocs/manual bind.html.en Log: Touchups to bind.html. Submitted by: Jason Lingohr Reviewed by: Joshua Slive Revision Changes Path 1.16 +28 -23 httpd-docs-1.3/htdocs/manual/bind.html.en Index: bind.html.en =================================================================== RCS file: /home/cvs/httpd-docs-1.3/htdocs/manual/bind.html.en,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -b -u -r1.15 -r1.16 --- bind.html.en 2000/11/22 02:58:18 1.15 +++ bind.html.en 2001/06/02 20:34:24 1.16 @@ -57,10 +57,10 @@ REL="Help" >Status: Core

-Makes the server listen to just the specified address. If the argument -is *, the server listens to all addresses. The port listened to -is set with the Port directive. Only one BindAddress -should be used. +Makes the server bind to just the specified address. If the argument is +* (an asterisk), the server binds to all interfaces currently marked +as up on the server. The port bound to is set with the Port +directive. Only one BindAddress should be used.

Listen

Status: Core

Listen can be used instead of BindAddress and -Port. It tells the server to accept incoming requests on the -specified port or address-and-port combination. If the first format is -used, with a port number only, the server listens to the given port on -all interfaces, instead of the port given by the Port -directive. 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 to. The server will respond to requests from any of the listed +Port. It tells the server to accept incoming requests (to listen) +on the specified port or address-and-port combination. If the first +format is used, with a port number only, the server listens on the given +port on all interfaces marked as up, instead of the port given by the +Port directive. 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 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 @@ -107,17 +107,22 @@

How this works with Virtual Hosts

-BindAddress and Listen do not implement Virtual Hosts. They tell the -main server what addresses and ports to listen to. If no -<VirtualHost> directives are used, the server will behave the -same for all accepted requests. However, <VirtualHost> 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 -<VirtualHost> section should be created for a specified address -and port to set the behavior of this virtual host. Note that if the -<VirtualHost> is set for an address and port that the server is -not listening to, it cannot be accessed. +BindAddress and Listen do not implement Virtual +Hosts. They tell the main Apache daemon process what addresses and ports +to bind and listen on. If no <VirtualHost> directives are used, +the server will behave the same for all accepted requests. However, +<VirtualHost> can be used to specify a different behavior for +one or more of the addresses and ports. To implement a VirtualHost, +the server must: + +
    +
  • Be told to Listen to the desired address and port +
  • Have a <VirtualHost> section created for the + specified address and port to set the behavior of this virtual host +
+ +Note that if the <VirtualHost> is set for an address and port that +the server is not listening to, it cannot be accessed.

See also

--------------------------------------------------------------------- To unsubscribe, e-mail: apache-docs-unsubscribe@apache.org For additional commands, e-mail: apache-docs-help@apache.org