<p>When Apache starts, it connects to some port and address on
the local machine and waits for incoming requests. By default,
- it listens to all addresses on the machine, and to the port as
- specified by the <code>Port</code> directive in the server
- configuration. However, it can be told to listen to more the
- one port, or to listen to only selected addresses, or a
- combination. This is often combined with the Virtual Host
- feature which determines how Apache responds to different IP
- addresses, hostnames and ports.</p>
+ it listens to all addresses on the machine. However, it needs to
+ be told to listen to specific ports, or to listen to only selected
+ addresses, or a combination. This is often combined with the
+ Virtual Host feature which determines how Apache responds to
+ different IP addresses, hostnames and ports.</p>
<p>The <code>Listen</code> directive tells the server to accept
incoming requests only on the specified port or
address-and-port combinations. If only a port number is
specified in the <code>Listen</code> directive, the server
- listens to the given port on all interfaces, instead of the
- port given by the <code>Port</code> directive. If an IP address
+ 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 to. The
See also the documentation on <a
href="mod/mpm_common.html#listen">Listen directive</a>, <a
href="vhosts/">Virtual Hosts</a>, <a
- href="mod/core.html#port">Port directive</a>, <a
href="dns-caveats.html">DNS Issues</a> and <a
href="mod/core.html#virtualhost"><VirtualHost>
section</a>. <!--#include virtual="footer.html" -->
<p>When Apache starts, it connects to some port and address on
the local machine and waits for incoming requests. By default,
- it listens to all addresses on the machine, and to the port as
- specified by the <code>Port</code> directive in the server
- configuration. However, it can be told to listen to more the
- one port, or to listen to only selected addresses, or a
- combination. This is often combined with the Virtual Host
- feature which determines how Apache responds to different IP
- addresses, hostnames and ports.</p>
+ it listens to all addresses on the machine. However, it needs to
+ be told to listen to specific ports, or to listen to only selected
+ addresses, or a combination. This is often combined with the
+ Virtual Host feature which determines how Apache responds to
+ different IP addresses, hostnames and ports.</p>
<p>The <code>Listen</code> directive tells the server to accept
incoming requests only on the specified port or
address-and-port combinations. If only a port number is
specified in the <code>Listen</code> directive, the server
- listens to the given port on all interfaces, instead of the
- port given by the <code>Port</code> directive. If an IP address
+ 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 to. The
See also the documentation on <a
href="mod/mpm_common.html#listen">Listen directive</a>, <a
href="vhosts/">Virtual Hosts</a>, <a
- href="mod/core.html#port">Port directive</a>, <a
href="dns-caveats.html">DNS Issues</a> and <a
href="mod/core.html#virtualhost"><VirtualHost>
section</a>. <!--#include virtual="footer.html" -->
is run as a daemon which executes continuously in the
background to handle requests.</p>
- <p>If the <a href="mod/core.html#port">Port</a> specified in
- the configuration file is the default of 80 (or any other port
+ <p>If the <a href="mod/mpm_common.html#Listen">Listen</a> specified in
+ the configuration file is default of 80 (or any other port
below 1024), then it is necessary to have root privileges in
order to start apache, so that it can bind to this privileged
port. Once the server has started and performed a few
is run as a daemon which executes continuously in the
background to handle requests.</p>
- <p>If the <a href="mod/core.html#port">Port</a> specified in
- the configuration file is the default of 80 (or any other port
+ <p>If the <a href="mod/mpm_common.html#Listen">Listen</a> specified in
+ the configuration file is default of 80 (or any other port
below 1024), then it is necessary to have root privileges in
order to start apache, so that it can bind to this privileged
port. Once the server has started and performed a few
# server type
ServerType standalone
-Port 8000
+Listen 8000
MinSpareServers 16
StartServers 16
MaxSpareServers 16
<p>After starting Apache running (either in a console window or
as a service) if will be listening to port 80 (unless you
- changed the <samp>Port</samp>, <samp>Listen</samp> or
- <samp>BindAddress</samp> directives in the configuration
+ changed the <samp>Listen</samp> directive in the configuration
files). To connect to the server and access the default page,
launch a browser and enter this URL:</p>
<pre>
of httpd.conf, with the one for <code>srm.conf</code>
preceding the one for <code>access.conf</code>.</li>
- <li>The <code>BindAddress</code> directive no longer exists.
- Equivalent functionality is provided with the more flexible
+ <li>The <code>BindAddress</code> and <code>Port</code>
+ directives no longer exist. Equivalent functionality is
+ provided with the more flexible
<code><a href="mod/mpm_common.html#listen">Listen</a></code>
directive.</li>