+++ /dev/null
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta name="generator" content="HTML Tidy, see www.w3.org" />
-
- <title>Setting which addresses and ports Apache uses</title>
- </head>
- <!-- Background white, links blue (unvisited), navy (visited), red (active) -->
-
- <body bgcolor="#FFFFFF" text="#000000" link="#0000FF"
- vlink="#000080" alink="#FF0000">
- <!--#include virtual="header.html" -->
-
- <h1 align="CENTER">Setting which addresses and ports Apache
- uses</h1>
-
- <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. 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. 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.</p>
-
- <p>For example, to make the server accept connections on both
- port 80 and port 8000, use:</p>
-<pre>
- Listen 80
- Listen 8000
-</pre>
- To make the server accept connections on two specified
- interfaces and port numbers, use
-<pre>
- Listen 192.170.2.1:80
- Listen 192.170.2.5:8000
-</pre>
- IPv6 addresses must be surrounded in square brackets, as in the
- following example:
-<pre>
- Listen [fe80::a00:20ff:fea7:ccea]:80
-</pre>
-
- <h2>Special IPv6 considerations</h2>
-
- When APR supports IPv6, Apache will create IPv6-capable listening
- sockets by default (i.e., when no IP address is specified on the
- Listen directive). In other words, when APR supports IPv6,
-<pre>
- Listen 80
-</pre>
- is equivalent to
-<pre>
- Listen [::]:80
-</pre>
- When APR does not support IPv6,
-<pre>
- Listen 80
-</pre>
- is equivalent to
-<pre>
- Listen 0.0.0.0:80
-</pre>
- On some platforms, such as NetBSD, binding to the IPv6 wildcard address
- ("::") does not allow Apache to accept connections on IPv4 interfaces.
- In this situation, multiple Listen directives are required, as shown
- below:
-<pre>
- Listen 0.0.0.0:80
- Listen [::]:80
-</pre>
- Apache does not currently detect this, so the Listen statements must
- be edited manually by the administrator.
-
- <h2>How this works with Virtual Hosts</h2>
-
- <p>Listen does not implement Virtual Hosts. It only tells 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.</p>
-
- <h2>See also</h2>
- See also the documentation on <a
- href="mod/mpm_common.html#listen">Listen directive</a>, <a
- href="vhosts/">Virtual Hosts</a>, <a
- href="dns-caveats.html">DNS Issues</a> and <a
- href="mod/core.html#virtualhost"><VirtualHost>
- section</a>. <!--#include virtual="footer.html" -->
- </body>
-</html>
-
--- /dev/null
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+
+ <title>Apache \e$B$,;HMQ$9$k%"%I%l%9$H%]!<%H$N@_Dj\e(B</title>
+ </head>
+ <!-- English revision: 1.19 -->
+ <!-- Background white, links blue (unvisited), navy (visited), red (active) -->
+
+ <body bgcolor="#FFFFFF" text="#000000" link="#0000FF"
+ vlink="#000080" alink="#FF0000">
+ <!--#include virtual="header.html" -->
+
+ <h1 align="center">Apache \e$B$,;HMQ$9$k%"%I%l%9$H%]!<%H$N@_Dj\e(B</h1>
+
+ <p>Apache \e$B$O5/F0;~$K!"%m!<%+%k%^%7%s$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e$B%5!<%P$O%j%9$H$5$l$?%"%I%l%9$d%]!<%H$+$i$NA4$F$N%j%/%(%9%H$K\e(B
+ \e$BBP$7$F1~Ez$7$^$9!#\e(B</p>
+
+ <p>\e$BNc$($P!"%]!<%H\e(B 80 \e$B$H\e(B 8000 \e$B$NN>J}$KBP$7$F$N@\B3$r<u$1IU$1$k$K$O\e(B</p>
+<pre>
+ Listen 80
+ Listen 8000
+</pre>
+ \e$B$H$7$^$9!#\e(B
+ 2 \e$B$D$N;XDj$5$l$?%$%s%?%U%'!<%9$H%]!<%HHV9f$KBP$7$F$N@\B3$r<u$1IU$1$k$K$O\e(B
+<pre>
+ Listen 192.170.2.1:80
+ Listen 192.170.2.5:8000
+</pre>
+ \e$B$H$7$^$9!#\e(B
+ IPv6 \e$B%"%I%l%9$O!"3Q3g8L$G<!$NNc$N$h$&$K0O$^$J$1$l$P$$$1$^$;$s!#\e(B
+<pre>
+ Listen [fe80::a00:20ff:fea7:ccea]:80
+</pre>
+
+ <h2>IPv6 \e$B$NFC5-;v9`\e(B</h2>
+
+ APR \e$B$,\e(B IPv6 \e$B$r%5%]!<%H$9$k>l9g$O!"\e(BApache \e$B$O%G%U%)%k%H$G\e(B IPv6
+ \e$B$r\e(B listen \e$B$9$k%=%1%C%H$r:n$j$^$9\e(B (\e$BNc$($P\e(B Listen \e$B%G%#%l%/%F%#%V$G\e(B
+ IP \e$B%"%I%l%9$,L5;XDj$N>l9g\e(B)\e$B!#\e(B
+ \e$B$D$^$j!"\e(BAPR \e$B$,\e(B IPv6 \e$B$r%5%]!<%H$9$k>l9g!"\e(B
+<pre>
+ Listen 80
+</pre>
+ \e$B$O\e(B
+<pre>
+ Listen [::]:80
+</pre>
+ \e$B$HF1Ey$G$9!#\e(BAPR \e$B$,\e(B IPv6 \e$B$r%5%]!<%H$7$J$$>l9g$O!"\e(B
+<pre>
+ Listen 80
+</pre>
+ \e$B$O\e(B
+<pre>
+ Listen 0.0.0.0:80
+</pre>
+ \e$B$HF1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$r\e(B
+ \e$B$^$:;O$a$K%5!<%P$KDLCN$7$J$1$l$P$J$j$^$;$s!#\e(B
+ \e$B$=$7$F!"$=$N;XDj$7$?%"%I%l%9$H%]!<%H$G$N\e(B
+ \e$B$3$N%P!<%A%c%k%[%9%H$N5sF0$r@_Dj$9$k$?$a$K!"\e(B
+ <VirtualHost> \e$B%;%/%7%g%s$r:n$j$^$9!#\e(B
+ \e$B$b$7\e(B <VirtualHost> \e$B$,\e(B listen \e$B$7$F$$$J$$%"%I%l%9$H%]!<%H$KBP$7$F\e(B
+ \e$B@_Dj$5$l$F$7$^$&$H!"\e(B
+ \e$B%"%/%;%9$9$k$3$H$,$G$-$J$$$H$$$&$3$H$KCm0U$7$F$/$@$5$$!#\e(B</p>
+
+ <h2>\e$B4XO"9`L\\e(B</h2>
+ <a
+ href="mod/mpm_common.html#listen">Listen \e$B%G%#%l%/%F%#%V\e(B</a>\e$B!"\e(B<a
+ href="vhosts/">\e$B%P!<%A%c%k%[%9%H\e(B</a>\e$B!"\e(B<a
+ href="dns-caveats.html">DNS \e$B$NLdBj\e(B</a> \e$B$H\e(B <a
+ href="mod/core.html#virtualhost"><VirtualHost>
+ \e$B%;%/%7%g%s\e(B</a>\e$B$NJ8=q$b$4Mw2<$5$$!#\e(B
+ <!--#include virtual="footer.html" -->
+ </body>
+</html>
+