diff options
| author | Stefan Fritsch <sf@sfritsch.de> | 2011-12-27 19:42:03 +0100 |
|---|---|---|
| committer | Stefan Fritsch <sf@sfritsch.de> | 2011-12-27 19:42:03 +0100 |
| commit | 80db94fff6a9620fb469ee911347ed973e3f7735 (patch) | |
| tree | 35ccde4018b7e6b84103e5e85dc1085ef9e7d6c2 /docs/manual/vhosts | |
| download | apache2-upstream/2.2.3.tar.gz | |
Upstream tarball 2.2.3upstream/2.2.3
Diffstat (limited to 'docs/manual/vhosts')
35 files changed, 8012 insertions, 0 deletions
diff --git a/docs/manual/vhosts/details.html b/docs/manual/vhosts/details.html new file mode 100644 index 00000000..a15007e6 --- /dev/null +++ b/docs/manual/vhosts/details.html @@ -0,0 +1,11 @@ +URI: details.html.en +Content-Language: en +Content-type: text/html; charset=ISO-8859-1 + +URI: details.html.fr +Content-Language: fr +Content-type: text/html; charset=ISO-8859-1 + +URI: details.html.ko.euc-kr +Content-Language: ko +Content-type: text/html; charset=EUC-KR diff --git a/docs/manual/vhosts/details.html.en b/docs/manual/vhosts/details.html.en new file mode 100644 index 00000000..fb1ecb3c --- /dev/null +++ b/docs/manual/vhosts/details.html.en @@ -0,0 +1,442 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>An In-Depth Discussion of Virtual Host Matching - Apache HTTP Server</title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p> +<p class="apache">Apache HTTP Server Version 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">Virtual Hosts</a></div><div id="page-content"><div id="preamble"><h1>An In-Depth Discussion of Virtual Host Matching</h1> +<div class="toplang"> +<p><span>Available Languages: </span><a href="../en/vhosts/details.html" title="English"> en </a> | +<a href="../fr/vhosts/details.html" hreflang="fr" rel="alternate" title="Franais"> fr </a> | +<a href="../ko/vhosts/details.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div> + + + <p>The virtual host code was completely rewritten in + <strong>Apache 1.3</strong>. This document attempts to explain + exactly what Apache does when deciding what virtual host to + serve a hit from. With the help of the new + <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> + directive virtual host configuration should be a lot easier and + safer than with versions prior to 1.3.</p> + + <p>If you just want to <cite>make it work</cite> without + understanding how, here are <a href="examples.html">some + examples</a>.</p> + +</div> +<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#configparsing">Config File Parsing</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#hostmatching">Virtual Host Matching</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#tips">Tips</a></li> +</ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="configparsing" id="configparsing">Config File Parsing</a></h2> + + <p>There is a <em>main_server</em> which consists of all the + definitions appearing outside of + <code><VirtualHost></code> sections. There are virtual + servers, called <em>vhosts</em>, which are defined by + <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> + sections.</p> + + <p>The directives + <code class="directive"><a href="../mod/mpm_common.html#listen">Listen</a></code>, + <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code>, + <code class="directive"><a href="../mod/core.html#serverpath">ServerPath</a></code>, + and <code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code> + can appear anywhere within the definition of a server. However, + each appearance overrides the previous appearance (within that + server).</p> + + <p>The default value of the <code>Listen</code> field for + main_server is 80. The main_server has no default + <code>ServerPath</code>, or <code>ServerAlias</code>. The + default <code>ServerName</code> is deduced from the server's IP + address.</p> + + <p>The main_server Listen directive has two functions. One + function is to determine the default network port Apache will + bind to. The second function is to specify the port number + which is used in absolute URIs during redirects.</p> + + <p>Unlike the main_server, vhost ports <em>do not</em> affect + what ports Apache listens for connections on.</p> + + <p>Each address appearing in the <code>VirtualHost</code> + directive can have an optional port. If the port is unspecified + it defaults to the value of the main_server's most recent + <code>Listen</code> statement. The special port <code>*</code> + indicates a wildcard that matches any port. Collectively the + entire set of addresses (including multiple <code>A</code> + record results from DNS lookups) are called the vhost's + <em>address set</em>.</p> + + <p>Unless a <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> + directive is used for a specific IP address the first vhost + with that address is treated as an IP-based vhost. The IP + address can also be the wildcard <code>*</code>.</p> + + <p>If name-based vhosts should be used a + <code>NameVirtualHost</code> directive <em>must</em> appear + with the IP address set to be used for the name-based vhosts. + In other words, you must specify the IP address that holds the + hostname aliases (CNAMEs) for your name-based vhosts via a + <code>NameVirtualHost</code> directive in your configuration + file.</p> + + <p>Multiple <code>NameVirtualHost</code> directives can be used + each with a set of <code>VirtualHost</code> directives but only + one <code>NameVirtualHost</code> directive should be used for + each specific IP:port pair.</p> + + <p>The ordering of <code>NameVirtualHost</code> and + <code>VirtualHost</code> directives is not important which + makes the following two examples identical (only the order of + the <code>VirtualHost</code> directives for <em>one</em> + address set is important, see below):</p> + +<table><tr> +<td><div class="example"><p><code> + NameVirtualHost 111.22.33.44<br /> + <VirtualHost 111.22.33.44><br /> + # server A<br /> + ...<br /> + </VirtualHost><br /> + <VirtualHost 111.22.33.44><br /> + # server B<br /> + ...<br /> + </VirtualHost><br /> + <br /> + NameVirtualHost 111.22.33.55<br /> + <VirtualHost 111.22.33.55><br /> + # server C<br /> + ...<br /> + </VirtualHost><br /> + <VirtualHost 111.22.33.55><br /> + # server D<br /> + ...<br /> + </VirtualHost> +</code></p></div></td> +<td><div class="example"><p><code> + <VirtualHost 111.22.33.44><br /> + # server A<br /> + </VirtualHost><br /> + <VirtualHost 111.22.33.55><br /> + # server C<br /> + ...<br /> + </VirtualHost><br /> + <VirtualHost 111.22.33.44><br /> + # server B<br /> + ...<br /> + </VirtualHost><br /> + <VirtualHost 111.22.33.55><br /> + # server D<br /> + ...<br /> + </VirtualHost><br /> + <br /> + NameVirtualHost 111.22.33.44<br /> + NameVirtualHost 111.22.33.55<br /> + <br /> +</code></p></div></td> +</tr></table> + + + <p>(To aid the readability of your configuration you should + prefer the left variant.)</p> + + <p>After parsing the <code>VirtualHost</code> directive, the + vhost server is given a default <code>Listen</code> equal to the + port assigned to the first name in its <code>VirtualHost</code> + directive.</p> + + <p>The complete list of names in the <code>VirtualHost</code> + directive are treated just like a <code>ServerAlias</code> (but + are not overridden by any <code>ServerAlias</code> statement) + if all names resolve to the same address set. Note that + subsequent <code>Listen</code> statements for this vhost will not + affect the ports assigned in the address set.</p> + + <p>During initialization a list for each IP address is + generated and inserted into an hash table. If the IP address is + used in a <code>NameVirtualHost</code> directive the list + contains all name-based vhosts for the given IP address. If + there are no vhosts defined for that address the + <code>NameVirtualHost</code> directive is ignored and an error + is logged. For an IP-based vhost the list in the hash table is + empty.</p> + + <p>Due to a fast hashing function the overhead of hashing an IP + address during a request is minimal and almost not existent. + Additionally the table is optimized for IP addresses which vary + in the last octet.</p> + + <p>For every vhost various default values are set. In + particular:</p> + + <ol> + <li>If a vhost has no <code class="directive"><a href="../mod/core.html#serveradmin">ServerAdmin</a></code>, + <code class="directive"><a href="../mod/core.html#resourceconfig">ResourceConfig</a></code>, + <code class="directive"><a href="../mod/core.html#accessconfig">AccessConfig</a></code>, + <code class="directive"><a href="../mod/core.html#timeout">Timeout</a></code>, + <code class="directive"><a href="../mod/core.html#keepalivetimeout">KeepAliveTimeout</a></code>, + <code class="directive"><a href="../mod/core.html#keepalive">KeepAlive</a></code>, + <code class="directive"><a href="../mod/core.html#maxkeepaliverequests">MaxKeepAliveRequests</a></code>, + <code class="directive"><a href="../mod/core.html#receivebuffersize">ReceiveBufferSize</a></code>, + or <code class="directive"><a href="../mod/core.html#sendbuffersize">SendBufferSize</a></code> + directive then the respective value is inherited from the + main_server. (That is, inherited from whatever the final + setting of that value is in the main_server.)</li> + + <li>The "lookup defaults" that define the default directory + permissions for a vhost are merged with those of the + main_server. This includes any per-directory configuration + information for any module.</li> + + <li>The per-server configs for each module from the + main_server are merged into the vhost server.</li> + </ol> + + <p>Essentially, the main_server is treated as "defaults" or a + "base" on which to build each vhost. But the positioning of + these main_server definitions in the config file is largely + irrelevant -- the entire config of the main_server has been + parsed when this final merging occurs. So even if a main_server + definition appears after a vhost definition it might affect the + vhost definition.</p> + + <p>If the main_server has no <code>ServerName</code> at this + point, then the hostname of the machine that <code class="program"><a href="../programs/httpd.html">httpd</a></code> + is running on is used instead. We will call the <em>main_server address + set</em> those IP addresses returned by a DNS lookup on the + <code>ServerName</code> of the main_server.</p> + + <p>For any undefined <code>ServerName</code> fields, a + name-based vhost defaults to the address given first in the + <code>VirtualHost</code> statement defining the vhost.</p> + + <p>Any vhost that includes the magic <code>_default_</code> + wildcard is given the same <code>ServerName</code> as the + main_server.</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="hostmatching" id="hostmatching">Virtual Host Matching</a></h2> + + <p>The server determines which vhost to use for a request as + follows:</p> + + <h3><a name="hashtable" id="hashtable">Hash table lookup</a></h3> + + <p>When the connection is first made by a client, the IP + address to which the client connected is looked up in the + internal IP hash table.</p> + + <p>If the lookup fails (the IP address wasn't found) the + request is served from the <code>_default_</code> vhost if + there is such a vhost for the port to which the client sent the + request. If there is no matching <code>_default_</code> vhost + the request is served from the main_server.</p> + + <p>If the IP address is not found in the hash table then the + match against the port number may also result in an entry + corresponding to a <code>NameVirtualHost *</code>, which is + subsequently handled like other name-based vhosts.</p> + + <p>If the lookup succeeded (a corresponding list for the IP + address was found) the next step is to decide if we have to + deal with an IP-based or a name-base vhost.</p> + + + + <h3><a name="ipbased" id="ipbased">IP-based vhost</a></h3> + + <p>If the entry we found has an empty name list then we have + found an IP-based vhost, no further actions are performed and + the request is served from that vhost.</p> + + + + <h3><a name="namebased" id="namebased">Name-based vhost</a></h3> + + <p>If the entry corresponds to a name-based vhost the name list + contains one or more vhost structures. This list contains the + vhosts in the same order as the <code>VirtualHost</code> + directives appear in the config file.</p> + + <p>The first vhost on this list (the first vhost in the config + file with the specified IP address) has the highest priority + and catches any request to an unknown server name or a request + without a <code>Host:</code> header field.</p> + + <p>If the client provided a <code>Host:</code> header field the + list is searched for a matching vhost and the first hit on a + <code>ServerName</code> or <code>ServerAlias</code> is taken + and the request is served from that vhost. A <code>Host:</code> + header field can contain a port number, but Apache always + matches against the real port to which the client sent the + request.</p> + + <p>If the client submitted a HTTP/1.0 request without + <code>Host:</code> header field we don't know to what server + the client tried to connect and any existing + <code>ServerPath</code> is matched against the URI from the + request. The first matching path on the list is used and the + request is served from that vhost.</p> + + <p>If no matching vhost could be found the request is served + from the first vhost with a matching port number that is on the + list for the IP to which the client connected (as already + mentioned before).</p> + + + + <h3><a name="persistent" id="persistent">Persistent connections</a></h3> + + <p>The IP lookup described above is only done <em>once</em> for a + particular TCP/IP session while the name lookup is done on + <em>every</em> request during a KeepAlive/persistent + connection. In other words a client may request pages from + different name-based vhosts during a single persistent + connection.</p> + + + + <h3><a name="absoluteURI" id="absoluteURI">Absolute URI</a></h3> + + <p>If the URI from the request is an absolute URI, and its + hostname and port match the main server or one of the + configured virtual hosts <em>and</em> match the address and + port to which the client sent the request, then the + scheme/hostname/port prefix is stripped off and the remaining + relative URI is served by the corresponding main server or + virtual host. If it does not match, then the URI remains + untouched and the request is taken to be a proxy request.</p> + + +<h3><a name="observations" id="observations">Observations</a></h3> + + <ul> + <li>A name-based vhost can never interfere with an IP-base + vhost and vice versa. IP-based vhosts can only be reached + through an IP address of its own address set and never + through any other address. The same applies to name-based + vhosts, they can only be reached through an IP address of the + corresponding address set which must be defined with a + <code>NameVirtualHost</code> directive.</li> + + <li><code>ServerAlias</code> and <code>ServerPath</code> + checks are never performed for an IP-based vhost.</li> + + <li>The order of name-/IP-based, the <code>_default_</code> + vhost and the <code>NameVirtualHost</code> directive within + the config file is not important. Only the ordering of + name-based vhosts for a specific address set is significant. + The one name-based vhosts that comes first in the + configuration file has the highest priority for its + corresponding address set.</li> + + <li>For security reasons the port number given in a + <code>Host:</code> header field is never used during the + matching process. Apache always uses the real port to which + the client sent the request.</li> + + <li>If a <code>ServerPath</code> directive exists which is a + prefix of another <code>ServerPath</code> directive that + appears later in the configuration file, then the former will + always be matched and the latter will never be matched. (That + is assuming that no <code>Host:</code> header field was + available to disambiguate the two.)</li> + + <li>If two IP-based vhosts have an address in common, the + vhost appearing first in the config file is always matched. + Such a thing might happen inadvertently. The server will give + a warning in the error logfile when it detects this.</li> + + <li>A <code>_default_</code> vhost catches a request only if + there is no other vhost with a matching IP address + <em>and</em> a matching port number for the request. The + request is only caught if the port number to which the client + sent the request matches the port number of your + <code>_default_</code> vhost which is your standard + <code>Listen</code> by default. A wildcard port can be + specified (<em>i.e.</em>, <code>_default_:*</code>) to catch + requests to any available port. This also applies to + <code>NameVirtualHost *</code> vhosts.</li> + + <li>The main_server is only used to serve a request if the IP + address and port number to which the client connected is + unspecified and does not match any other vhost (including a + <code>_default_</code> vhost). In other words the main_server + only catches a request for an unspecified address/port + combination (unless there is a <code>_default_</code> vhost + which matches that port).</li> + + <li>A <code>_default_</code> vhost or the main_server is + <em>never</em> matched for a request with an unknown or + missing <code>Host:</code> header field if the client + connected to an address (and port) which is used for + name-based vhosts, <em>e.g.</em>, in a + <code>NameVirtualHost</code> directive.</li> + + <li>You should never specify DNS names in + <code>VirtualHost</code> directives because it will force + your server to rely on DNS to boot. Furthermore it poses a + security threat if you do not control the DNS for all the + domains listed. There's <a href="../dns-caveats.html">more + information</a> available on this and the next two + topics.</li> + + <li><code>ServerName</code> should always be set for each + vhost. Otherwise A DNS lookup is required for each + vhost.</li> + </ul> + + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="tips" id="tips">Tips</a></h2> + + <p>In addition to the tips on the <a href="../dns-caveats.html#tips">DNS Issues</a> page, here are + some further tips:</p> + + <ul> + <li>Place all main_server definitions before any + <code>VirtualHost</code> definitions. (This is to aid the + readability of the configuration -- the post-config merging + process makes it non-obvious that definitions mixed in around + virtual hosts might affect all virtual hosts.)</li> + + <li>Group corresponding <code>NameVirtualHost</code> and + <code>VirtualHost</code> definitions in your configuration to + ensure better readability.</li> + + <li>Avoid <code>ServerPaths</code> which are prefixes of + other <code>ServerPaths</code>. If you cannot avoid this then + you have to ensure that the longer (more specific) prefix + vhost appears earlier in the configuration file than the + shorter (less specific) prefix (<em>i.e.</em>, "ServerPath + /abc" should appear after "ServerPath /abc/def").</li> + </ul> + +</div></div> +<div class="bottomlang"> +<p><span>Available Languages: </span><a href="../en/vhosts/details.html" title="English"> en </a> | +<a href="../fr/vhosts/details.html" hreflang="fr" rel="alternate" title="Franais"> fr </a> | +<a href="../ko/vhosts/details.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div> +</body></html>
\ No newline at end of file diff --git a/docs/manual/vhosts/details.html.fr b/docs/manual/vhosts/details.html.fr new file mode 100644 index 00000000..3e4fd6f7 --- /dev/null +++ b/docs/manual/vhosts/details.html.fr @@ -0,0 +1,459 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>Dtails sur le fonctionnement des serveurs virtuels - Serveur Apache HTTP</title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossaire</a> | <a href="../sitemap.html">Plan du site</a></p> +<p class="apache">Serveur Apache HTTP Version 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">Serveur HTTP</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">Serveurs virtuels</a></div><div id="page-content"><div id="preamble"><h1>Dtails sur le fonctionnement des serveurs virtuels</h1> +<div class="toplang"> +<p><span>Langues Disponibles: </span><a href="../en/vhosts/details.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/details.html" title="Franais"> fr </a> | +<a href="../ko/vhosts/details.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div> +<div class="outofdate">Cette traduction peut tre prime. Verifiez la version + Anglaise pour les changements rcents.</div> + + + <p>Le code grant les serveurs virtuels a t rcrit partir de + zro dans <strong>Apache 1.3</strong>. Ce document vise expliquer + dans le dtail comment Apache procde lors du choix de l'utilisation + d'un serveur virtuel en fonction d'une requte reue. L'apparition + de la directive <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> + a rendu beaucoup plus facile et plus sre la configuration des + serveurs virtuels par rapport aux versions prcdant la 1.3.</p> + + <p>Si vous voulez juste <cite>que a marche</cite> sans en + comprendre le fonctionnement, voici <a href="examples.html">quelques + exemples</a>.</p> + +</div> +<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#configparsing">Interprtation des fichiers +de configuration</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#hostmatching">Choix du serveur virtuel</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#tips">Trucs et astuces</a></li> +</ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="configparsing" id="configparsing">Interprtation des fichiers +de configuration</a></h2> + + <p>Un <em>serveur principal (main_server)</em> contient toutes + les dfinitions qui apparaissent en dehors des sections + <code><VirtualHost></code>. Les serveurs virtuels, aussi + appels <em>vhosts</em> (pour virtual hosts), sont dfinis par les + sections <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code>.</p> + + <p>Les directives + <code class="directive"><a href="../mod/mpm_common.html#listen">Listen</a></code>, + <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code>, + <code class="directive"><a href="../mod/core.html#serverpath">ServerPath</a></code>, + et <code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code> + peuvent tre places n'importe o dans le cadre de dfinition d'un + serveur. Cependant, chaque fois que l'une d'elles est lue, elle crase + ses instances prcdentes (dans le contexte du mme serveur).</p> + + <p>La valeur par dfaut du champ <code>Listen</code> pour le serveur + principal est de 80. Le serveur principal n'a pas de valeur par + dfaut pour <code>ServerPath</code> ni pour <code>ServerAlias</code>. + La valeur par dfaut de <code>ServerName</code> est dduite partir + de l'adresses IP du serveur.</p> + + <p>La directive Listen associe au serveur principal a deux utilits. + La premire dtermine le port rseau sur lequel Apache va couter. + La deuxime spcifie le port qui sera utilis dans les URIs absolus + lors des redirections.</p> + + <p> la diffrence du serveur principal, les ports des serveurs + virtuels <em>n</em>'affectent <em>pas</em> les ports sur lesquels + Apache se met l'coute.</p> + + <p>Chaque adresse incluse dans une directive <code>VirtualHost</code> + peut disposer d'un port optionnel. Si le port n'est pas prcis, il + prend par dfaut la dernire valeur de <code>Listen</code> lue dans + la configuration du serveur principal. Le port particulier + <code>*</code> reprsente un joker qui correspond tous les ports. + L'ensemble des adresses (y compris les rsultats multiples + <code>A</code> issus des requtes DNS) est appel <em>jeu + d'adresses</em> du serveur virtuel.</p> + + <p> moins qu'une directive + <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> ne soit utilise + pour une adresse IP spcifique, le premier serveur virtuel avec + cette adresse est considr comme un <em>serveur virtuel par-IP</em>. + L'adresse IP peut galement prendre la valeur joker <code>*</code>.</p> + + <p>Dans les cas o l'on souhaite utiliser un <em>serveur virtuel + par nom</em>, la directive <code>NameVirtualHost</code> <em>doit</em> + apparatre avec l'adresse IP choisie. En d'autres termes, vous devez + spcifier dans votre fichier de configuration l'adresse IP des noms + de domaine (CNAME) de vos serveurs virtuels par nom au moyen de + la directive <code>NameVirtualHost</code>.</p> + + <p>On peut utiliser plusieurs directives <code>NameVirtualHost</code> + pour un groupe de directives <code>VirtualHost</code>, mais seule + une directive <code>NameVirtualHost</code> doit tre utilise pour + chaque couple IP:port donn.</p> + + <p>L'ordre d'apparition des directives <code>NameVirtualHost</code> + et <code>VirtualHost</code> est sans importance, ce qui fait que + les deux exemples suivants ont des effets identiques (seul l'ordre + des directives <code>VirtualHost</code> pour <em>un</em> jeu + d'adresses est important, voir ci-dessous) :</p> + +<table><tr> +<td><div class="example"><p><code> + NameVirtualHost 111.22.33.44<br /> + <VirtualHost 111.22.33.44><br /> + # serveur A<br /> + ...<br /> + </VirtualHost><br /> + <VirtualHost 111.22.33.44><br /> + # serveur B<br /> + ...<br /> + </VirtualHost><br /> + <br /> + NameVirtualHost 111.22.33.55<br /> + <VirtualHost 111.22.33.55><br /> + # serveur C<br /> + ...<br /> + </VirtualHost><br /> + <VirtualHost 111.22.33.55><br /> + # serveur D<br /> + ...<br /> + </VirtualHost> +</code></p></div></td> +<td><div class="example"><p><code> + <VirtualHost 111.22.33.44><br /> + # serveur A<br /> + </VirtualHost><br /> + <VirtualHost 111.22.33.55><br /> + # serveur C<br /> + ...<br /> + </VirtualHost><br /> + <VirtualHost 111.22.33.44><br /> + # serveur B<br /> + ...<br /> + </VirtualHost><br /> + <VirtualHost 111.22.33.55><br /> + # serveur D<br /> + ...<br /> + </VirtualHost><br /> + <br /> + NameVirtualHost 111.22.33.44<br /> + NameVirtualHost 111.22.33.55<br /> + <br /> +</code></p></div></td> +</tr></table> + + + <p>(Il est conseill d'adopter le choix de gauche pour faciliter + la lisibilit des fichiers de configuration.)</p> + + <p>Aprs la lecture de la directive <code>VirtualHost</code>, le + serveur virtuel se voit attribuer une valeur <code>Listen</code> + par dfaut qui est la valeur du port associ au premier nom spcifi + dans sa directive <code>VirtualHost</code>.</p> + + <p>La liste complte des noms d'une directive <code>VirtualHost</code> + est gre exactement comme des <code>ServerAlias</code> (mais ne + sont pas crass par d'autres <code>ServerAlias</code>) si tous + les noms sont rsolus dans ce jeu d'adresse. noter que les tats + <code>Listen</code> de ce serveur virtuel sont sans incidence sur + les ports attibus au jeu d'adresses.</p> + + <p>Pendant la phase d'initialisation, une liste de chaque adresse + IP est gnre et introduite dans une table de 'hash'. Si une + adresse IP est utilise dans une directive <code>NameVirtualHost</code>, + cette liste contient les noms des serveurs virtuels pour cette + adresse. Si aucun serveur virtuel n'est dfini pour cette adresse, + la directive <code>NameVirtualHost</code> est ignore et un message + est envoy au journal d'erreurs. Quand un serveur virtuel par IP + est utilis, la table de 'hash' reste vide.</p> + + <p>La fonction de 'hash' tant rapide, le temps d'excution d'un + 'hash' sur une adresse IP lors d'une requte est minimale et + quasiment imperceptible. De plus, la table est optimise pour les + adresses IP dont le dernier octet est le seul changer.</p> + + <p>Pour chaque serveur virtuel, diverses valeurs sont initialises + par dfaut. En particulier :</p> + + <ol> + <li>Dans le cas o un serveur virtuel ne contient pas de directives + <code class="directive"><a href="../mod/core.html#serveradmin">ServerAdmin</a></code>, + <code class="directive"><a href="../mod/core.html#resourceconfig">ResourceConfig</a></code>, + <code class="directive"><a href="../mod/core.html#accessconfig">AccessConfig</a></code>, + <code class="directive"><a href="../mod/core.html#timeout">Timeout</a></code>, + <code class="directive"><a href="../mod/core.html#keepalivetimeout">KeepAliveTimeout</a></code>, + <code class="directive"><a href="../mod/core.html#keepalive">KeepAlive</a></code>, + <code class="directive"><a href="../mod/core.html#maxkeepaliverequests">MaxKeepAliveRequests</a></code>, + ou <code class="directive"><a href="../mod/core.html#sendbuffersize">SendBufferSize</a></code>, + alors la valeur de chacun de ces paramtres est hrite de celle du + serveur principal. (C'est dire, hrite de la valeur finale aprs + lecture de la configuration du serveur principal.)</li> + + <li>Les permissions par dfaut sur les rpertoires de chaque + serveur virtuel sont assembles avec celles du serveur principal. + Elles concernent galement toutes les informations de configuration + par rpertoire pour tous les modules.</li> + + <li>Les configurations par serveur pour chaque module sont assembles + partir de celles du serveur principal.</li> + </ol> + + <p>L'essentiel des valeurs de configuration des serveurs virtuels + provient de valeurs par dfaut issues du serveur principal. + Mais la position dans le fichier de configuration des directives + du serveur principal n'a pas d'importance -- l'ensemble de la + configuration du serveur principal est lu avant que ces valeurs par + dfaut soient appliques aux serveur virtuels. Ainsi, mme si la + dfinition d'une valeur apparat aprs celle d'un serveur virtuel, + cette valeur peut affecter la definition du serveur virtuel.</p> + + <p>Dans le cas o le serveur principal n'a pas de <code>ServerName</code> + ce stade, le nom de la machine sur laquelle tourne le programme + <code class="program"><a href="../programs/httpd.html">httpd</a></code> est utilis sa place. Nous appellerons + <em>jeu d'adresses du serveur principal</em>, les adresses IP + renvoyes par une rsolution DNS sur le <code>ServerName</code> + du serveur principal.</p> + + <p>Pour tous les champs <code>ServerName</code> non dfinis, dans + le cas d'une configuration en serveur virtuel par nom, la valeur + adopte par dfaut est la premire adresse donne dans la section + <code>VirtualHost</code> qui dfinit le serveur virtuel.</p> + + <p>Si un serveur virtuel contient la valeur magique + <code>_default_</code>, il fonctionne sur le mme <code>ServerName</code> + que le serveur principal.</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="hostmatching" id="hostmatching">Choix du serveur virtuel</a></h2> + + <p> la rception d'une requte, le serveur procde comme suit pour + dterminer quel serveur virtuel utiliser :</p> + + <h3><a name="hashtable" id="hashtable">Vrification dans la table de hash</a></h3> + + <p>Aprs que le client se soit connect, l'adresse + IP laquelle le client s'est connect est recherche dans la + table de hash IP interne.</p> + + <p>Si la rsolution de l'adresse IP n'aboutit pas (adresse IP non + trouve), la requte est servie par le serveur virtuel + <code>_default_</code> s'il est dfini pour le port correspondant + la requte. Sinon, elle est servie par le serveur principal.</p> + + <p>Si l'adresse IP n'est pas trouve dans la table de hash, la + recherche du numro de port peut aussi se terminer par une + correspondance un <code>NameVirtualHost *</code> qui est gr + ensuite comme les autres serveur virtuels par noms.</p> + + <p>Si une liste est bien trouve dans la table pour l'adresse + IP recherche, l'tape suivante est de dterminer s'il s'agit + d'un serveur virtuel par nom ou par IP.</p> + + + + <h3><a name="ipbased" id="ipbased">Serveur virtuel par IP</a></h3> + + <p>Si l'entre trouve dispose d'une liste de noms vide, c'est + qu'il s'agit d'un serveur virtuel par IP, et aucun autre choix + n'est plus faire ; la requte est servie par ce serveur virtuel.</p> + + + + <h3><a name="namebased" id="namebased">Serveur virtuel par nom</a></h3> + + <p>Si l'entre trouve correspond un serveur virtuel par nom, + la liste de noms contient au moins une structure de serveurs + virtuels. Les serveurs virtuels se prsentent dans cette liste + dans le mme ordre que la lecture des directives <code>VirtualHost</code> + dans le fichier de configuration.</p> + + <p>Le premier serveur virtuel de cette liste (donc, le premier + serveur virtuel attribu une adresse IP donne dans le fichier + de configuration) se voit attribuer la plus grande priorit, ce + qui signifie que c'est lui qui traite les requtes prsentant un + nom de serveur invalide ou ne prsentant pas de champ + <code>Host:</code> dans l'en-tte.</p> + + <p>Si un champ <code>Host:</code> est transmis dans l'en-tte de + la requte, son occurrence est recherche dans la liste et le + premier serveur virtuel qui prsente un <code>ServerName</code> + ou un <code>ServerAlias</code> correspondant est choisi pour + servir la requte. Il est possible que le champ <code>Host:</code> + contienne un numro de port, mais Apache utilise toujours le + port sur lequel il a effectivement reu la requte.</p> + + <p>Dans le cas o le client a envoy une requte en HTTP/1.0 sans + un champ d'en-tte <code>Host:</code>, il est impossible de + dterminer le serveur auquel le client veut se connecter ; l'URI + de la requte est recherch dans tous les <code>ServerPath</code> + existants. Le premier chemin trouv est utilis et la requte est + servie par le serveur virtuel correspondant.</p> + + <p>Si aucun serveur virtuel n'est trouv, la requte est servie + par le premier serveur virtuel qui coute sur le port demand et + qui est sur la liste associe l'adresse IP vers laquelle la + requte a t envoye (comme dj prcis ci-avant).</p> + + + + <h3><a name="persistent" id="persistent">Connexions persistantes</a></h3> + + <p>La recherche par adresse IP dcrite ci-avant n'est faite + qu'<em>une fois</em> pour chaque session TCP/IP, alors que la + recherche par nom est ralise pour <em>chaque</em> requte au + cours d'une connexion persistante (KeepAlive). En d'autres termes, + il est possible pour un client de faire des requtes sur + diffrents serveurs virtuels par nom, au cours d'une unique + connexion persistante.</p> + + + + <h3><a name="absoluteURI" id="absoluteURI">URI absolu</a></h3> + + <p>Au cas o l'URI de la requte est absolu, et que son nom de + serveur et son port correspondent au serveur principal (ou l'un + des serveurs virtuels configurs), <em>et</em> qu'ils correspondent + l'adresse et au port de la requte, alors l'URI est amput + de son prfixe protocole/nom de serveur/port et trait par le + serveur correspondant (principal ou virtuel). Si cette correspondance + n'existe pas, l'URI reste inchang et la requte est considre + comme une requte d'un serveur mandataire (proxy).</p> + + +<h3><a name="observations" id="observations">Observations</a></h3> + + <ul> + <li>Les serveurs virtuels par nom et par IP n'interfrent + jamais entre eux. Les serveurs virtuels par IP ne sont joignables + qu'au travers de leur(s) adresse(s) IP propre(s), en aucun + cas par aucune autre adresse. Les serveurs virtuels par nom + ne sont accessibles que par leur(s) adresse(s) IP qui ne peuvent + tre dfinies qu'au moyen de la directive + <code>NameVirtualHost</code>.</li> + + <li>Les vrifications sur <code>ServerAlias</code> et + <code>ServerPath</code> ne sont jamais ralises pour les + serveurs virtuels par IP.</li> + + <li>L'ordre dans lequel sont agencs dans le fichier de + configuration le serveur virtuel <code>_default_</code>, les + serveurs virtuels par nom et par IP, et la directive + <code>NameVirtualHost</code> est sans incidence sur le + fonctionnement. Seul l'ordre des serveurs virtuels par nom + pour une adresse donne a une importance. Le serveur virtuel + par nom qui est prsent en premier dans la configuration se + voit attribu la priorit la plus haute pour les requtes + arrivant sur son jeu d'adresses IP.</li> + + <li>Pour des raisons de scurit, le numro de port prsent + dans le champ d'en-tte <code>Host:</code> n'est jamais utilis + pour les tests de correspondances. Apache ne prend en compte + que le numro de port sur lequel le client a envoy la requte.</li> + + <li>Si une directive <code>ServerPath</code> existe, et se + trouve tre prfixe d'une autre directive <code>ServerPath</code> + qui apparat plus loin dans la configuration, la premire + sera toujours utilise et la deuxime jamais. (Ceci ne se + produit que dans le cas o aucun champ <code>Host:</code> + n'a t prsent par le client pour distinguer les deux.)</li> + + <li>Dans le cas o deux serveurs virtuels par IP ont une + adresse en commun, le serveur virtuel qui apparat en premier + dans la configuration est toujours choisi. Ce genre de chose + peut arriver par inadvertance. Le serveur envoie une alerte + dans le journal d'erreurs si ce cas se prsente.</li> + + <li>Le serveur virtuel <code>_default_</code> ne sert la requte + que si aucun autre serveur virtuel travaillant sur l'adresse + IP <em>et</em> le port demands n'est trouv. La requte n'est + traite que si le numro de port qui a reu la requte est + associ au serveur virtuel <code>_default_</code> (qui par + dfaut, correspond <code>Listen</code>). Un port joker peut + tre spcifi (<em>comme dans</em> <code>_default_:*</code>) + pour rcuprer les requtes sur tous les ports ouverts. Ceci + est galement applicable aux serveurs virtuels + <code>NameVirtualHost *</code>.</li> + + <li>Le serveur principal ne sert servir les requtes que + lorsque l'adresse IP et le port demands par le client ne + correspondent aucun serveur virtuel (y compris un serveur + virtuel <code>_default_</code>). En d'autres termes, le serveur + principal n'est utile que pour les combinaisons adresse/port + non spcifies (sauf quand un serveur virtuel <code>_default_</code> + correspond au port).</li> + + <li>Ni les serveurs virtuels <code>_default_</code>, ni le + serveur principal ne sont utiliss pour traiter une requte + avec un champ d'en-tte <code>Host:</code> manquant ou vide + lorsque l'adresse (et le port) de connexion correspondent + des serveurs virtuels par nom, par exemple, dans une directive + <code>NameVirtualHost</code>.</li> + + <li>Il ne faut jamais employer de noms DNS dans des directives + <code>VirtualHost</code>, car cela oblige le serveur a s'appuyer + sur le DNS au moment du dmarrage. De plus, vous vous exposez + des problmes de scurit si vous n'avez pas la matrise du + DNS pour la totalit de vos domaines. Voir la documentation + <a href="../dns-caveats.html">disponible ici</a>, ainsi que + les deux points prciss ci-aprs.</li> + + <li>Un nom de serveur <code>ServerName</code> devrait toujours + tre indiqu pour chaque serveur virtuel. Sans cela, une + rsolution DNS est ncessaire pour chaque serveur virtuel.</li> + </ul> + + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="tips" id="tips">Trucs et astuces</a></h2> + + <p>En plus des points voqus sur la page des + <a href="../dns-caveats.html#tips">problmes lis au DNS</a>, + voici quelques points intressants :</p> + + <ul> + <li>Toujours positionner les dfinitions relatives au serveur + principal avant toute dfinition <code>VirtualHost</code>. + (Ceci amliore grandement la lisibilit de la configuration + -- la manire dont la configuration est interprte aprs la + lecture des fichiers ne met pas en vidence le fait que les + dfinitions positionnes avant et surtout aprs les serveurs + virtuels peuvent impacter le fonctionnement des serveurs virtuels.)</li> + + <li>Toujours regrouper les dfinitions <code>NameVirtualHost</code> + et <code>VirtualHost</code> dans la configuration pour une + meilleure lisibilit.</li> + + <li>viter les <code>ServerPaths</code> qui sont prfixes + d'autres <code>ServerPaths</code>. Si cela ne peut tre vit, + veillez ce que le serveur virtuel contenant le prfixe le plus + long (donc le plus prcis) apparaisse dans le fichier de + configuration avant le plus court. (<em>par exemple</em>, + "ServerPath /abc" est spcifier aprs "ServerPath /abc/def").</li> + </ul> + +</div></div> +<div class="bottomlang"> +<p><span>Langues Disponibles: </span><a href="../en/vhosts/details.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/details.html" title="Franais"> fr </a> | +<a href="../ko/vhosts/details.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Authoris sous <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossaire</a> | <a href="../sitemap.html">Plan du site</a></p></div> +</body></html>
\ No newline at end of file diff --git a/docs/manual/vhosts/details.html.ko.euc-kr b/docs/manual/vhosts/details.html.ko.euc-kr new file mode 100644 index 00000000..3b0efcc3 --- /dev/null +++ b/docs/manual/vhosts/details.html.ko.euc-kr @@ -0,0 +1,384 @@ +<?xml version="1.0" encoding="EUC-KR"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>ȣƮ ã ڼ - Apache HTTP Server</title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/"></a> | <a href="../mod/directives.html">þ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html"></a> | <a href="../sitemap.html">Ʈ</a></p> +<p class="apache">Apache HTTP Server Version 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">ȣƮ</a></div><div id="page-content"><div id="preamble"><h1>ȣƮ ã ڼ </h1> +<div class="toplang"> +<p><span> : </span><a href="../en/vhosts/details.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/details.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="../ko/vhosts/details.html" title="Korean"> ko </a></p> +</div> +<div class="outofdate"> ֽ ƴմϴ. + ֱٿ ϼ.</div> + + + <p>ȣƮ ڵ <strong>ġ 1.3</strong> ٽ + ۼǾ. ġ û ȣƮ + ϴ Ѵ. ο <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> þ Ͽ + ȣƮ 1.3 .</p> + + <p> ϴ ʰ <cite>ϰԸ</cite> + ϰ ʹٸ, <a href="examples.html"></a> ϶.</p> + +</div> +<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#configparsing"> б</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#hostmatching">ȣƮ ã</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#tips"></a></li> +</ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="configparsing" id="configparsing"> б</a></h2> + + <p><code><VirtualHost></code> + <em>ּ</em> . <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> + κ ȣƮ θ.</p> + + <p><code class="directive"><a href="../mod/mpm_common.html#listen">Listen</a></code>, + <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code>, + <code class="directive"><a href="../mod/core.html#serverpath">ServerPath</a></code>, + <code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code> þ + ִ. þ + ( ) þ ȿϴ.</p> + + <p>ּ <code>Listen</code> ⺻ 80̴. ּ + <code>ServerPath</code> <code>ServerAlias</code> + ⺻ . <code>ServerName</code> ⺻ + IP ̴ּ.</p> + + <p>ּ Listen þ ΰ Ѵ. ù° + ġ ⺻ Ʈ Ʈ ϴ ̴. ° + ̷ URI Ʈ ȣ ϴ ̴.</p> + + <p>ּ ȣƮ Ʈ ġ ٸ + Ʈ <em>ʴ´</em>.</p> + + <p><code>VirtualHost</code> þ Ʈ ִ. + Ʈ ּ ֱ <code>Listen</code> + Ѵ. Ư Ʈ <code>*</code> Ʈ + Īϴ ϵī̴. (DNS ˻ <code>A</code> + ڵ带 Ͽ) ȣƮ ּҸ ĪϿ ȣƮ + <em>ּ(address set)</em>̶ θ.</p> + + <p>Ư IP ּҿ <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> þ ٸ + ּҸ ϴ ù° ȣƮ IP ȣƮ Ѵ. + IP ּҿ ϵī <code>*</code> ִ.</p> + + <p≯ ȣƮ Ѵٸ ̸ ȣƮ + IP ּҸ <code>NameVirtualHost</code> þ + ؾ <em>Ѵ</em>. , <code>NameVirtualHost</code> + þ ̸ ȣƮ ȣƮ(CNAME) شϴ + IP ּҸ ؾ Ѵ.</p> + + <p>Ư IP:Ʈ ֿ <code>NameVirtualHost</code> + þ Ѵٸ, <code>NameVirtualHost</code> þ + <code>VirtualHost</code> þ ִ.</p> + + <p><code>NameVirtualHost</code> <code>VirtualHost</code> + þ ߿ ʱ ( + <em></em> ּտ <code>VirtualHost</code> + ߿ϴ. Ʒ ):</p> + +<table><tr> +<td><div class="example"><p><code> + NameVirtualHost 111.22.33.44<br /> + <VirtualHost 111.22.33.44><br /> + # A<br /> + ...<br /> + </VirtualHost><br /> + <VirtualHost 111.22.33.44><br /> + # B<br /> + ...<br /> + </VirtualHost><br /> + <br /> + NameVirtualHost 111.22.33.55<br /> + <VirtualHost 111.22.33.55><br /> + # C<br /> + ...<br /> + </VirtualHost><br /> + <VirtualHost 111.22.33.55><br /> + # D<br /> + ...<br /> + </VirtualHost> +</code></p></div></td> +<td><div class="example"><p><code> + <VirtualHost 111.22.33.44><br /> + # A<br /> + </VirtualHost><br /> + <VirtualHost 111.22.33.55><br /> + # C<br /> + ...<br /> + </VirtualHost><br /> + <VirtualHost 111.22.33.44><br /> + # B<br /> + ...<br /> + </VirtualHost><br /> + <VirtualHost 111.22.33.55><br /> + # D<br /> + ...<br /> + </VirtualHost><br /> + <br /> + NameVirtualHost 111.22.33.44<br /> + NameVirtualHost 111.22.33.55<br /> + <br /> +</code></p></div></td> +</tr></table> + + + <p>( б ϴ.)</p> + + <p><code>VirtualHost</code> þ , ȣƮ + <code>VirtualHost</code> þ Ʈ ⺻ + <code>Listen</code> Ѵ.</p> + + <p><code>VirtualHost</code> þ ̸ + ּտ Ѵٸ <code>ServerAlias</code> Ѵ + ( ٸ <code>ServerAlias</code> ʴ´). + ȣƮ ߰ <code>Listen</code> ּ + Ʈ ϶.</p> + + <p>Ҷ IP ּ ؽ̺ ߰Ѵ. + <code>NameVirtualHost</code> þ IP ּҸ ϸ + IP ּҿ ̸ ȣƮ Ѵ. + ּҿ ȣƮ ٸ <code>NameVirtualHost</code> + þ ϰ α Ѵ. IP ȣƮ + ؽ̺ ߰ ʴ´.</p> + + <p> ؽԼ ϱ û IP ּҸ ؽϴ + δ . ؽ̺ IP ּ κ + ̿ ȭִ.</p> + + <p>ȣƮ ⺻ ȴ. Ư:</p> + + <ol> + <li>ȣƮ <code class="directive"><a href="../mod/core.html#serveradmin">ServerAdmin</a></code>, + <code class="directive"><a href="../mod/core.html#resourceconfig">ResourceConfig</a></code>, + <code class="directive"><a href="../mod/core.html#accessconfig">AccessConfig</a></code>, + <code class="directive"><a href="../mod/core.html#timeout">Timeout</a></code>, + <code class="directive"><a href="../mod/core.html#keepalivetimeout">KeepAliveTimeout</a></code>, + <code class="directive"><a href="../mod/core.html#keepalive">KeepAlive</a></code>, + <code class="directive"><a href="../mod/core.html#maxkeepaliverequests">MaxKeepAliveRequests</a></code>, + <code class="directive"><a href="../mod/core.html#sendbuffersize">SendBufferSize</a></code> + þ ٸ ּ ش ´. (, + ּ Ѵ.)</li> + + <li>ȣƮ 丮 ⺻ ϴ " + ⺻(lookup defaults)" ּ . + 丮 (per-directory configuration) + شȴ.</li> + + <li> (per-server config) ּ + ȣƮ ģ.</li> + </ol> + + <p>⺻ ּ ȣƮ "⺻" Ȥ "" + ȴ. Ͽ ּ ϴ ġ . + ġ ּ оδ. + ּ ǰ ȣƮ ڿ ͵ ȣƮ + ǿ ش.</p> + + <p>ּ <code>ServerName</code> ٸ ϴ + ǻ ȣƮ Ѵ. ּ + <code>ServerName</code> DNS ̻Ͽ IP ּҵ + <em>ּ ּ</em>̶ θ.</p> + + <p≯ ȣƮ <code>ServerName</code> + ȣƮ ϴ <code>VirtualHost</code> + ó ּҸ ⺻ Ѵ.</p> + + <p>Ư <code>_default_</code> Ʈī带 ϴ + ȣƮ ּ <code>ServerName</code> .</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="hostmatching" id="hostmatching">ȣƮ ã</a></h2> + + <p> Ʒ ȣƮ û + ó Ѵ:</p> + + <h3><a name="hashtable" id="hashtable">ؽ̺ ã</a></h3> + + <p>Ŭ̾Ʈ ó ϸ IP ּҸ IP + ؽ̺ ã´.</p> + + <p>IP ּҸ ã Ŭ̾Ʈ û Ʈ + شϴ ȣƮ ִٸ, <code>_default_</code> ȣƮ + û Ѵ. <code>_default_</code> ȣƮ + ٸ ּ û Ѵ.</p> + + <p>ؽ̺ IP ּҰ Ʈ ȣ + <code>NameVirtualHost *</code> ش ִ. + ̸ ȣƮó óѴ.</p> + + <p>ãҴٸ (Ͽ IP ּҿ شϴ ã), + IP ȣƮ ̸ ȣƮ Ѵ.</p> + + + + <h3><a name="ipbased" id="ipbased">IP ȣƮ</a></h3> + + <p>ã ̸ ٸ IP ȣƮ̴. + ̻ ۾ ʿ, ȣƮ û óѴ.</p> + + + + <h3><a name="namebased" id="namebased"≯ ȣƮ</a></h3> + + <p≯ Ͽ Ѱ ̻ ȣƮ ԵǸ + ̸ ȣƮ̴. Ͽ ȣƮ + <code>VirtualHost</code> ġѴ.</p> + + <p>Ͽ ù° ȣƮ(Ͽ ش IP ּҸ + ϴ ù° ȣƮ) 켱 , + ų <code>Host:</code> û + óѴ.</p> + + <p>Ŭ̾Ʈ <code>Host:</code> ָ, Ͽ + ù° <code>ServerName</code>̳ + <code>ServerAlias</code> ϴ ȣƮ û + Ѵ. <code>Host:</code> Ʈ ȣ + , ġ Ŭ̾Ʈ û Ʈ + ã´.</p> + + <p>Ŭ̾Ʈ <code>Host:</code> HTTP/1.0 û + ϸ Ŭ̾Ʈ Ϸ + û URI شϴ <code>ServerPath</code> ִ ã´. + Ͽ ã θ ϰ, ȣƮ + û Ѵ.</p> + + <p>ϴ ȣƮ ã ٸ, (̹ տ ߵ) + Ŭ̾Ʈ IP Ͽ ġϴ Ʈ ȣ + ϴ ù° ȣƮ û Ѵ.</p> + + + + <h3><a name="persistent" id="persistent"> </a></h3> + + <p>IP ѵ Ư TCP/IP Ǵ <em>ѹ</em> + ã, ̸ KeepAlive/ ᵿ <em></em> û + ã´. , Ŭ̾Ʈ ᵿ ̸ + ȣƮ û ִ.</p> + + + + <h3><a name="absoluteURI" id="absoluteURI"> URI</a></h3> + + <p>û URI URḬ Ŭ̾Ʈ û + ȣƮ Ʈ ּ Ư ȣƮ شϸ, + ּ Ȥ ȣƮ URI Ŵ/ȣƮ/Ʈ + κ URI Ѵ. شϴ + ּ ȣƮ ٸ URI ״ ΰ û + Ͻ û óѴ.</p> + + +<h3><a name="observations" id="observations"></a></h3> + + <ul> + <li≯ ȣƮ IP ȣƮ ο + ʴ´. IP ȣƮ ڽ ̸ + IP ּҿܿ ּҷε . ̸ + ȣƮ . ̸ ȣƮ + <code>NameVirtualHost</code> þ ּ + IP ּҸ ؼ ִ.</li> + + <li>IP ȣƮ <code>ServerAlias</code> + <code>ServerPath</code> ˻ ʴ´.</li> + + <li>Ͽ ̸ ȣƮ, IP ȣƮ, + <code>_default_</code> ȣƮ, <code>NameVirtualHost</code> + þ ߿ ʴ. Ư ּտ + ̸ ȣƮ ߿ϴ. Ͽ + տ ̸ ȣƮ ڽ ּտ + 켱 .</li> + + <li> <code>Host:</code> Ե Ʈ + ȣ ʴ´. ġ Ŭ̾Ʈ + û Ʈ Ѵ.</li> + + <li>( ̸ <code>Host:</code> ٰ + ϸ,) <code>ServerPath</code> þ Ͽ + ڿ ٸ <code>ServerPath</code> þ պκ + Īϴ տ þ Ѵ.</li> + + <li> IP ȣƮ ּҸ , + Ͽ տ ȣƮ Ѵ. ̷ + ƹ Ͼ ִ. ̷ Ȳ ߰ϸ + αϿ Ѵ.</li> + + <li><code>_default_</code> ȣƮ û IP ּ<em></em> + Ʈ ȣ شϴ ȣƮ û óѴ. + Ŭ̾Ʈ û Ʈ ȣ <code>_default_</code> + ȣƮ Ʈ ȣ(⺻ <code>Listen</code>) + û óѴ. Ʈ û̶ + (<em> </em>, <code>_default_:*</code>) ϵī + Ʈ ִ. <code>NameVirtualHost *</code> + ȣƮ .</li> + + <li>ּ Ŭ̾Ʈ IP ּҿ Ʈ ȣ + شϴ (<code>_default_</code> ȣƮ Ͽ) + ȣƮ û Ѵ. , ּ + ( Ʈ شϴ <code>_default_</code> ȣƮ + ٸ) ּ/Ʈ ֿ û óѴ.</li> + + <li>Ŭ̾Ʈ (<em> </em>, <code>NameVirtualHost</code> + þ) ̸ ȣƮ ּ( Ʈ) + <code>Host:</code> ų + û û <em></em> <code>_default_</code> + ȣƮ ּ ó ʴ´.</li> + + <li>Ҷ DNS + <code>VirtualHost</code> þ DNS ̸ . + Դٰ DNS ʴ´ٸ + Ȼ 赵 ִ. ̿ <a href="../dns-caveats.html"></a> ִ.</li> + + <li> ȣƮ <code>ServerName</code> + ؾ Ѵ. ȱ ȣƮ DNS ã ȴ.</li> + </ul> + + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="tips" id="tips"></a></h2> + + <p><a href="../dns-caveats.html#tips">DNS </a> + ߰ Ʒ ִ:</p> + + <ul> + <li> ּ Ǹ <code>VirtualHost</code> տ + ξ. ( б ϴ. ȱ ߿ + ȣƮ ̿ ǰ ȣƮ + ֱ ȥ.)</li> + + <li>б ϵ شϴ <code>NameVirtualHost</code> + <code>VirtualHost</code> ǵ .</li> + + <li><code>ServerPath</code> ٸ <code>ServerPath</code> + պκ Īϴ 츦 ϶. ٸ Ͽ + պκ ( ڼ) ȣƮ ª ( ڼ) + ȣƮ տ ξ. (<em> </em>, + "ServerPath /abc" "ServerPath /abc/def" ξ + Ѵ.</li> + </ul> + +</div></div> +<div class="bottomlang"> +<p><span> : </span><a href="../en/vhosts/details.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/details.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="../ko/vhosts/details.html" title="Korean"> ko </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/"></a> | <a href="../mod/directives.html">þ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html"></a> | <a href="../sitemap.html">Ʈ</a></p></div> +</body></html>
\ No newline at end of file diff --git a/docs/manual/vhosts/examples.html b/docs/manual/vhosts/examples.html new file mode 100644 index 00000000..0ed55e50 --- /dev/null +++ b/docs/manual/vhosts/examples.html @@ -0,0 +1,15 @@ +URI: examples.html.en +Content-Language: en +Content-type: text/html; charset=ISO-8859-1 + +URI: examples.html.fr +Content-Language: fr +Content-type: text/html; charset=ISO-8859-1 + +URI: examples.html.ja.euc-jp +Content-Language: ja +Content-type: text/html; charset=EUC-JP + +URI: examples.html.ko.euc-kr +Content-Language: ko +Content-type: text/html; charset=EUC-KR diff --git a/docs/manual/vhosts/examples.html.en b/docs/manual/vhosts/examples.html.en new file mode 100644 index 00000000..b5e3729e --- /dev/null +++ b/docs/manual/vhosts/examples.html.en @@ -0,0 +1,660 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>VirtualHost Examples - Apache HTTP Server</title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p> +<p class="apache">Apache HTTP Server Version 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">Virtual Hosts</a></div><div id="page-content"><div id="preamble"><h1>VirtualHost Examples</h1> +<div class="toplang"> +<p><span>Available Languages: </span><a href="../en/vhosts/examples.html" title="English"> en </a> | +<a href="../fr/vhosts/examples.html" hreflang="fr" rel="alternate" title="Franais"> fr </a> | +<a href="../ja/vhosts/examples.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/examples.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div> + + + <p>This document attempts to answer the commonly-asked questions about + setting up virtual hosts. These scenarios are those involving multiple + web sites running on a single server, via <a href="name-based.html">name-based</a> or <a href="ip-based.html">IP-based</a> virtual hosts. + </p> + +</div> +<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#purename">Running several name-based web + sites on a single IP address.</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#twoips">Name-based hosts on more than one + IP address.</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#intraextra">Serving the same content on + different IP addresses (such as an internal and external + address).</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#port">Running different sites on different + ports.</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#ip">IP-based virtual hosting</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#ipport">Mixed port-based and ip-based virtual + hosts</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#mixed">Mixed name-based and IP-based + vhosts</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#proxy">Using <code>Virtual_host</code> and + mod_proxy together</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#default">Using <code>_default_</code> + vhosts</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#migrate">Migrating a name-based vhost to an + IP-based vhost</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#serverpath">Using the <code>ServerPath</code> + directive</a></li> +</ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="purename" id="purename">Running several name-based web + sites on a single IP address.</a></h2> + + <p>Your server has a single IP address, and multiple aliases (CNAMES) + point to this machine in DNS. You want to run a web server for + <code>www.example.com</code> and <code>www.example.org</code> on this + machine.</p> + + <div class="note"><h3>Note</h3><p>Creating virtual + host configurations on your Apache server does not magically + cause DNS entries to be created for those host names. You + <em>must</em> have the names in DNS, resolving to your IP + address, or nobody else will be able to see your web site. You + can put entries in your <code>hosts</code> file for local + testing, but that will work only from the machine with those + hosts entries.</p> + </div> + + <div class="example"><h3>Server configuration</h3><p><code> + + + # Ensure that Apache listens on port 80<br /> + Listen 80<br /> + <br /> + # Listen for virtual host requests on all IP addresses<br /> + NameVirtualHost *:80<br /> + <br /> + <VirtualHost *:80><br /> + <span class="indent"> + DocumentRoot /www/example1<br /> + ServerName www.example.com<br /> + <br /> + # Other directives here<br /> + <br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost *:80><br /> + <span class="indent"> + DocumentRoot /www/example2<br /> + ServerName www.example.org<br /> + <br /> + # Other directives here<br /> + <br /> + </span> + </VirtualHost> + </code></p></div> + + <p>The asterisks match all addresses, so the main server serves no + requests. Due to the fact that <code>www.example.com</code> is first + in the configuration file, it has the highest priority and can be seen + as the <cite>default</cite> or <cite>primary</cite> server. That means + that if a request is received that does not match one of the specified + <code>ServerName</code> directives, it will be served by this first + <code>VirtualHost</code>.</p> + + <div class="note"> + <h3>Note</h3> + + <p>You can, if you wish, replace <code>*</code> with the actual + IP address of the system. In that case, the argument to + <code>VirtualHost</code> <em>must</em> match the argument to + <code>NameVirtualHost</code>:</p> + + <div class="example"><p><code> + NameVirtualHost 172.20.30.40<br /> + <br /> + <VirtualHost 172.20.30.40><br /> + # etc ... + </code></p></div> + + <p>However, it is additionally useful to use <code>*</code> + on systems where the IP address is not predictable - for + example if you have a dynamic IP address with your ISP, and + you are using some variety of dynamic DNS solution. Since + <code>*</code> matches any IP address, this configuration + would work without changes whenever your IP address + changes.</p> + </div> + + <p>The above configuration is what you will want to use in almost + all name-based virtual hosting situations. The only thing that this + configuration will not work for, in fact, is when you are serving + different content based on differing IP addresses or ports.</p> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="twoips" id="twoips">Name-based hosts on more than one + IP address.</a></h2> + + <div class="note"> + <h3>Note</h3><p>Any of the + techniques discussed here can be extended to any number of IP + addresses.</p> + </div> + + <p>The server has two IP addresses. On one (<code>172.20.30.40</code>), we + will serve the "main" server, <code>server.domain.com</code> and on the + other (<code>172.20.30.50</code>), we will serve two or more virtual hosts.</p> + + <div class="example"><h3>Server configuration</h3><p><code> + + + Listen 80<br /> + <br /> + # This is the "main" server running on 172.20.30.40<br /> + ServerName server.domain.com<br /> + DocumentRoot /www/mainserver<br /> + <br /> + # This is the other address<br /> + NameVirtualHost 172.20.30.50<br /> + <br /> + <VirtualHost 172.20.30.50><br /> + <span class="indent"> + DocumentRoot /www/example1<br /> + ServerName www.example.com<br /> + <br /> + # Other directives here ...<br /> + <br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.50><br /> + <span class="indent"> + DocumentRoot /www/example2<br /> + ServerName www.example.org<br /> + <br /> + # Other directives here ...<br /> + <br /> + </span> + </VirtualHost> + </code></p></div> + + <p>Any request to an address other than <code>172.20.30.50</code> will be + served from the main server. A request to <code>172.20.30.50</code> with an + unknown hostname, or no <code>Host:</code> header, will be served from + <code>www.example.com</code>.</p> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="intraextra" id="intraextra">Serving the same content on + different IP addresses (such as an internal and external + address).</a></h2> + + <p>The server machine has two IP addresses (<code>192.168.1.1</code> + and <code>172.20.30.40</code>). The machine is sitting between an + internal (intranet) network and an external (internet) network. Outside + of the network, the name <code>server.example.com</code> resolves to + the external address (<code>172.20.30.40</code>), but inside the + network, that same name resolves to the internal address + (<code>192.168.1.1</code>).</p> + + <p>The server can be made to respond to internal and external requests + with the same content, with just one <code>VirtualHost</code> + section.</p> + + <div class="example"><h3>Server configuration</h3><p><code> + + + NameVirtualHost 192.168.1.1<br /> + NameVirtualHost 172.20.30.40<br /> + <br /> + <VirtualHost 192.168.1.1 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/server1<br /> + ServerName server.example.com<br /> + ServerAlias server<br /> + </span> + </VirtualHost> + </code></p></div> + + <p>Now requests from both networks will be served from the same + <code>VirtualHost</code>.</p> + + <div class="note"> + <h3>Note:</h3><p>On the internal + network, one can just use the name <code>server</code> rather + than the fully qualified host name + <code>server.example.com</code>.</p> + + <p>Note also that, in the above example, you can replace the list + of IP addresses with <code>*</code>, which will cause the server to + respond the same on all addresses.</p> + </div> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="port" id="port">Running different sites on different + ports.</a></h2> + + <p>You have multiple domains going to the same IP and also want to + serve multiple ports. By defining the ports in the "NameVirtualHost" + tag, you can allow this to work. If you try using <VirtualHost + name:port> without the NameVirtualHost name:port or you try to use + the Listen directive, your configuration will not work.</p> + + <div class="example"><h3>Server configuration</h3><p><code> + + + Listen 80<br /> + Listen 8080<br /> + <br /> + NameVirtualHost 172.20.30.40:80<br /> + NameVirtualHost 172.20.30.40:8080<br /> + <br /> + <VirtualHost 172.20.30.40:80><br /> + <span class="indent"> + ServerName www.example.com<br /> + DocumentRoot /www/domain-80<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40:8080><br /> + <span class="indent"> + ServerName www.example.com<br /> + DocumentRoot /www/domain-8080<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40:80><br /> + <span class="indent"> + ServerName www.example.org<br /> + DocumentRoot /www/otherdomain-80<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40:8080><br /> + <span class="indent"> + ServerName www.example.org<br /> + DocumentRoot /www/otherdomain-8080<br /> + </span> + </VirtualHost> + </code></p></div> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="ip" id="ip">IP-based virtual hosting</a></h2> + + <p>The server has two IP addresses (<code>172.20.30.40</code> and + <code>172.20.30.50</code>) which resolve to the names + <code>www.example.com</code> and <code>www.example.org</code> + respectively.</p> + + <div class="example"><h3>Server configuration</h3><p><code> + + + Listen 80<br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/example1<br /> + ServerName www.example.com<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.50><br /> + <span class="indent"> + DocumentRoot /www/example2<br /> + ServerName www.example.org<br /> + </span> + </VirtualHost> + </code></p></div> + + <p>Requests for any address not specified in one of the + <code><VirtualHost></code> directives (such as + <code>localhost</code>, for example) will go to the main server, if + there is one.</p> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="ipport" id="ipport">Mixed port-based and ip-based virtual + hosts</a></h2> + + <p>The server machine has two IP addresses (<code>172.20.30.40</code> and + <code>172.20.30.50</code>) which resolve to the names + <code>www.example.com</code> and <code>www.example.org</code> + respectively. In each case, we want to run hosts on ports 80 and + 8080.</p> + + <div class="example"><h3>Server configuration</h3><p><code> + + + Listen 172.20.30.40:80<br /> + Listen 172.20.30.40:8080<br /> + Listen 172.20.30.50:80<br /> + Listen 172.20.30.50:8080<br /> + <br /> + <VirtualHost 172.20.30.40:80><br /> + <span class="indent"> + DocumentRoot /www/example1-80<br /> + ServerName www.example.com<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40:8080><br /> + <span class="indent"> + DocumentRoot /www/example1-8080<br /> + ServerName www.example.com<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.50:80><br /> + <span class="indent"> + DocumentRoot /www/example2-80<br /> + ServerName www.example.org<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.50:8080><br /> + <span class="indent"> + DocumentRoot /www/example2-8080<br /> + ServerName www.example.org<br /> + </span> + </VirtualHost> + </code></p></div> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="mixed" id="mixed">Mixed name-based and IP-based + vhosts</a></h2> + + <p>On some of my addresses, I want to do name-based virtual hosts, and + on others, IP-based hosts.</p> + + <div class="example"><h3>Server configuration</h3><p><code> + + + Listen 80<br /> + <br /> + NameVirtualHost 172.20.30.40<br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/example1<br /> + ServerName www.example.com<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/example2<br /> + ServerName www.example.org<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/example3<br /> + ServerName www.example3.net<br /> + </span> + </VirtualHost><br /> + <br /> + # IP-based<br /> + <VirtualHost 172.20.30.50><br /> + <span class="indent"> + DocumentRoot /www/example4<br /> + ServerName www.example4.edu<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.60><br /> + <span class="indent"> + DocumentRoot /www/example5<br /> + ServerName www.example5.gov<br /> + </span> + </VirtualHost> + </code></p></div> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="proxy" id="proxy">Using <code>Virtual_host</code> and + mod_proxy together</a></h2> + + <p>The following example allows a front-end machine to proxy a + virtual host through to a server running on another machine. In the + example, a virtual host of the same name is configured on a machine + at <code>192.168.111.2</code>. The <code class="directive"><a href="../mod/mod_proxy.html#proxypreservehost on">ProxyPreserveHost On</a></code> directive is + used so that the desired hostname is passed through, in case we are + proxying multiple hostnames to a single machine.</p> + + <div class="example"><p><code> + <VirtualHost *:*><br /> + ProxyPreserveHost On<br /> + ProxyPass / http://192.168.111.2<br /> + ProxyPassReverse / http://192.168.111.2/<br /> + ServerName hostname.example.com<br /> + </VirtualHost> + </code></p></div> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="default" id="default">Using <code>_default_</code> + vhosts</a></h2> + + <h3><a name="defaultallports" id="defaultallports"><code>_default_</code> vhosts + for all ports</a></h3> + + <p>Catching <em>every</em> request to any unspecified IP address and + port, <em>i.e.</em>, an address/port combination that is not used for + any other virtual host.</p> + + <div class="example"><h3>Server configuration</h3><p><code> + + + <VirtualHost _default_:*><br /> + <span class="indent"> + DocumentRoot /www/default<br /> + </span> + </VirtualHost> + </code></p></div> + + <p>Using such a default vhost with a wildcard port effectively prevents + any request going to the main server.</p> + + <p>A default vhost never serves a request that was sent to an + address/port that is used for name-based vhosts. If the request + contained an unknown or no <code>Host:</code> header it is always + served from the primary name-based vhost (the vhost for that + address/port appearing first in the configuration file).</p> + + <p>You can use <code class="directive"><a href="../mod/mod_alias.html#aliasmatch">AliasMatch</a></code> or + <code class="directive"><a href="../mod/mod_rewrite.html#rewriterule">RewriteRule</a></code> to rewrite any + request to a single information page (or script).</p> + + + <h3><a name="defaultdifferentports" id="defaultdifferentports"><code>_default_</code> vhosts + for different ports</a></h3> + + <p>Same as setup 1, but the server listens on several ports and we want + to use a second <code>_default_</code> vhost for port 80.</p> + + <div class="example"><h3>Server configuration</h3><p><code> + + + <VirtualHost _default_:80><br /> + <span class="indent"> + DocumentRoot /www/default80<br /> + # ...<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost _default_:*><br /> + <span class="indent"> + DocumentRoot /www/default<br /> + # ...<br /> + </span> + </VirtualHost> + </code></p></div> + + <p>The default vhost for port 80 (which <em>must</em> appear before any + default vhost with a wildcard port) catches all requests that were sent + to an unspecified IP address. The main server is never used to serve a + request.</p> + + + <h3><a name="defaultoneport" id="defaultoneport"><code>_default_</code> vhosts + for one port</a></h3> + + <p>We want to have a default vhost for port 80, but no other default + vhosts.</p> + + <div class="example"><h3>Server configuration</h3><p><code> + + + <VirtualHost _default_:80><br /> + DocumentRoot /www/default<br /> + ...<br /> + </VirtualHost> + </code></p></div> + + <p>A request to an unspecified address on port 80 is served from the + default vhost. Any other request to an unspecified address and port is + served from the main server.</p> + + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="migrate" id="migrate">Migrating a name-based vhost to an + IP-based vhost</a></h2> + + <p>The name-based vhost with the hostname + <code>www.example.org</code> (from our <a href="#name">name-based</a> example, setup 2) should get its own IP + address. To avoid problems with name servers or proxies who cached the + old IP address for the name-based vhost we want to provide both + variants during a migration phase.</p> + + <p> + The solution is easy, because we can simply add the new IP address + (<code>172.20.30.50</code>) to the <code>VirtualHost</code> + directive.</p> + + <div class="example"><h3>Server configuration</h3><p><code> + + + Listen 80<br /> + ServerName www.example.com<br /> + DocumentRoot /www/example1<br /> + <br /> + NameVirtualHost 172.20.30.40<br /> + <br /> + <VirtualHost 172.20.30.40 172.20.30.50><br /> + <span class="indent"> + DocumentRoot /www/example2<br /> + ServerName www.example.org<br /> + # ...<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/example3<br /> + ServerName www.example.net<br /> + ServerAlias *.example.net<br /> + # ...<br /> + </span> + </VirtualHost> + </code></p></div> + + <p>The vhost can now be accessed through the new address (as an + IP-based vhost) and through the old address (as a name-based + vhost).</p> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="serverpath" id="serverpath">Using the <code>ServerPath</code> + directive</a></h2> + + <p>We have a server with two name-based vhosts. In order to match the + correct virtual host a client must send the correct <code>Host:</code> + header. Old HTTP/1.0 clients do not send such a header and Apache has + no clue what vhost the client tried to reach (and serves the request + from the primary vhost). To provide as much backward compatibility as + possible we create a primary vhost which returns a single page + containing links with an URL prefix to the name-based virtual + hosts.</p> + + <div class="example"><h3>Server configuration</h3><p><code> + + + NameVirtualHost 172.20.30.40<br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + # primary vhost<br /> + DocumentRoot /www/subdomain<br /> + RewriteEngine On<br /> + RewriteRule ^/.* /www/subdomain/index.html<br /> + # ...<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40><br /> + DocumentRoot /www/subdomain/sub1<br /> + <span class="indent"> + ServerName www.sub1.domain.tld<br /> + ServerPath /sub1/<br /> + RewriteEngine On<br /> + RewriteRule ^(/sub1/.*) /www/subdomain$1<br /> + # ...<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/subdomain/sub2<br /> + ServerName www.sub2.domain.tld<br /> + ServerPath /sub2/<br /> + RewriteEngine On<br /> + RewriteRule ^(/sub2/.*) /www/subdomain$1<br /> + # ...<br /> + </span> + </VirtualHost> + </code></p></div> + + <p>Due to the <code class="directive"><a href="../mod/core.html#serverpath">ServerPath</a></code> + directive a request to the URL + <code>http://www.sub1.domain.tld/sub1/</code> is <em>always</em> served + from the sub1-vhost.<br /> A request to the URL + <code>http://www.sub1.domain.tld/</code> is only + served from the sub1-vhost if the client sent a correct + <code>Host:</code> header. If no <code>Host:</code> header is sent the + client gets the information page from the primary host.</p> + + <p>Please note that there is one oddity: A request to + <code>http://www.sub2.domain.tld/sub1/</code> is also served from the + sub1-vhost if the client sent no <code>Host:</code> header.</p> + + <p>The <code class="directive"><a href="../mod/mod_rewrite.html#rewriterule">RewriteRule</a></code> directives + are used to make sure that a client which sent a correct + <code>Host:</code> header can use both URL variants, <em>i.e.</em>, + with or without URL prefix.</p> + + </div></div> +<div class="bottomlang"> +<p><span>Available Languages: </span><a href="../en/vhosts/examples.html" title="English"> en </a> | +<a href="../fr/vhosts/examples.html" hreflang="fr" rel="alternate" title="Franais"> fr </a> | +<a href="../ja/vhosts/examples.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/examples.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div> +</body></html>
\ No newline at end of file diff --git a/docs/manual/vhosts/examples.html.fr b/docs/manual/vhosts/examples.html.fr new file mode 100644 index 00000000..6c2cbc09 --- /dev/null +++ b/docs/manual/vhosts/examples.html.fr @@ -0,0 +1,679 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>Exemples d'utilisations de VirtualHost - Serveur Apache HTTP</title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossaire</a> | <a href="../sitemap.html">Plan du site</a></p> +<p class="apache">Serveur Apache HTTP Version 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">Serveur HTTP</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">Serveurs virtuels</a></div><div id="page-content"><div id="preamble"><h1>Exemples d'utilisations de VirtualHost</h1> +<div class="toplang"> +<p><span>Langues Disponibles: </span><a href="../en/vhosts/examples.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/examples.html" title="Franais"> fr </a> | +<a href="../ja/vhosts/examples.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/examples.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div> + + + <p>Le but de ce document est d'essayer de rpondre aux questions + les plus rpandues sur la configuration des serveurs virtuels. + Les scnarios prsents ici se rencontrent quand plusieurs + serveurs Webs doivent tourner sur une seule et mme machine au + moyen de serveurs virtuels <a href="name-based.html">par nom</a> + ou <a href="ip-based.html">par IP</a>.</p> + +</div> +<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#purename">Fonctionnement de plusieurs serveurs + virtuels par nom sur une seule adresse IP.</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#twoips">Serveurs virtuels par nom sur plus + d'une seule adresse IP.</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#intraextra">Servir le mme contenu sur des + adresses IP diffrentes (telle qu'une adresse interne et une + externe).</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#port">Servir diffrents sites sur diffrents + ports.</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#ip">Hbergement virtuel bas sur IP</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#ipport">Hbergements virtuels mixtes bass sur + les ports et sur les IP</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#mixed">Hbergements virtuels mixtes bas sur + les noms et sur IP</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#proxy">Utilisation simultane de + <code>Virtual_host</code> et de mod_proxy</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#default">Utilisation de serveurs virtuels + <code>_default_</code></a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#migrate">Migration d'un serveur virtuel + par nom en un serveur virtuel par IP</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#serverpath">Utilisation de la directive + <code>ServerPath</code></a></li> +</ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="purename" id="purename">Fonctionnement de plusieurs serveurs + virtuels par nom sur une seule adresse IP.</a></h2> + + <p>Votre serveur ne dispose que d'une seule adresse IP, et de + nombreux alias (CNAMES) pointent vers cette adresse dans le DNS. + Pour l'exemple, <code>www.example1.com</code> et + <code>www.example2.org</code> doivent tourner sur cette machine.</p> + + <div class="note"><h3>Note :</h3><p>La configuration de serveurs virtuels + sous Apache ne provoque pas leur apparition magique dans la + configuration du DNS. Il <em>faut</em> que leurs noms soient + dfinis dans le DNS, et qu'ils y soient rsolus sur l'adresse IP + du serveur, faute de quoi personne ne pourra visiter votre site Web. + Il est possible d'ajouter des entres dans le fichier + <code>hosts</code> pour tests locaux, mais qui ne fonctionneront + que sur la machine possdant ces entres.</p> + </div> + + <div class="example"><h3>Configuration du serveur</h3><p><code> + + + # Apache doit couter sur le port 80<br /> + Listen 80<br /> + <br /> + # Toutes les adresses IP doivent rpondre aux requtes sur les + # serveurs virtuels + NameVirtualHost *:80<br /> + <br /> + <VirtualHost *:80><br /> + <span class="indent"> + DocumentRoot /www/example1<br /> + ServerName www.example1.com<br /> + <br /> + # Autres directives ici<br /> + <br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost *:80><br /> + <span class="indent"> + DocumentRoot /www/example2<br /> + ServerName www.example2.org<br /> + <br /> + # Autres directives ici<br /> + <br /> + </span> + </VirtualHost> + </code></p></div> + + <p>Les astrisques correspondent toutes les adresses, si bien que + le serveur principal ne rpondra jamais aucune requte. Comme + <code>www.example1.com</code> se trouve en premier dans le fichier + de configuration, il a la plus grande priorit et peut tre vu + comme serveur <cite>par dfaut</cite> ou <cite>primaire</cite> ; + ce qui signifie que toute requte reue ne correspondant pas une + des directives <code>ServerName</code> sera servie par ce premier + <code>VirtualHost</code>.</p> + + <div class="note"> + <h3>Note :</h3> + + <p>Si vous le souhaitez, vous pouvez remplacer <code>*</code> + par l'adresse IP du systme. Dans ce cas, l'argument de + <code>VirtualHost</code> <em>doit</em> correspondre + l'argument de <code>NameVirtualHost</code> :</p> + + <div class="example"><p><code> + NameVirtualHost 172.20.30.40<br /> + <br /> + <VirtualHost 172.20.30.40><br /> + # etc ... + </code></p></div> + + <p>En gnral, il est commode d'utiliser <code>*</code> sur + les systmes dont l'adresse IP n'est pas constante - par + exemple, pour des serveurs dont l'adresse IP est attribue + dynamiquement par le FAI, et o le DNS est gr au moyen + d'un DNS dynamique quelconque. Comme <code>*</code> signifie + <cite>n'importe quelle adresse</cite>, cette configuration + fonctionne sans devoir tre modifie quand l'adresse IP du + systme est modifie.</p> + </div> + + <p>La configuration ci-dessus est en pratique utilise dans la + plupart des cas pour les serveurs virtuels par nom. En fait, le + seul cas o cette configuration ne fonctionne pas est lorsque + diffrents contenus doivent tre servis en fonction de l'adresse IP + et du port contacts par le client.</p> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="twoips" id="twoips">Serveurs virtuels par nom sur plus + d'une seule adresse IP.</a></h2> + + <div class="note"> + <h3>Note :</h3><p>Toutes les techniques prsentes ici + peuvent tre tendues un plus grand nombre d'adresses IP.</p> + </div> + + <p>Le serveur a deux adresses IP. Sur l'une + (<code>172.20.30.40</code>), le serveur "principal" + <code>server.domain.com</code> doit rpondre, et sur l'autre + (<code>172.20.30.50</code>), deux serveurs virtuels (ou plus) + rpondront.</p> + + <div class="example"><h3>Configuration du serveur</h3><p><code> + + + Listen 80<br /> + <br /> + # Serveur "principal" sur 172.20.30.40<br /> + ServerName server.domain.com<br /> + DocumentRoot /www/mainserver<br /> + <br /> + # l'autre adresse <br /> + NameVirtualHost 172.20.30.50<br /> + <br /> + <VirtualHost 172.20.30.50><br /> + <span class="indent"> + DocumentRoot /www/example1<br /> + ServerName www.example1.com<br /> + <br /> + # D'autres directives ici ...<br /> + <br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.50><br /> + <span class="indent"> + DocumentRoot /www/example2<br /> + ServerName www.example2.org<br /> + <br /> + # D'autres directives ici ...<br /> + <br /> + </span> + </VirtualHost> + </code></p></div> + + <p>Toute requte arrivant sur une autre adresse que + <code>172.20.30.50</code> sera servie par le serveur principal. + Les requtes vers <code>172.20.30.50</code> avec un nom de serveur + inconnu, ou sans en-tte <code>Host:</code>, seront servies par + <code>www.example1.com</code>.</p> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="intraextra" id="intraextra">Servir le mme contenu sur des + adresses IP diffrentes (telle qu'une adresse interne et une + externe).</a></h2> + + <p>La machine serveur dispose de deux adresses IP + (<code>192.168.1.1</code> et <code>172.20.30.40</code>). Cette + machine est place la fois sur le rseau interne (l'Intranet) + et le rseau externe (Internet). Sur Internet, le nom + <code>server.example.com</code> pointe vers l'adresse externe + (<code>172.20.30.40</code>), mais sur le rseau interne, ce mme + nom pointe vers l'adresse interne (<code>192.168.1.1</code>).</p> + + <p>Le serveur peut tre configur pour rpondre de la mme manire + aux requtes internes et externes, au moyen d'une seule section + <code>VirtualHost</code>.</p> + + <div class="example"><h3>Configuration du serveur</h3><p><code> + + + NameVirtualHost 192.168.1.1<br /> + NameVirtualHost 172.20.30.40<br /> + <br /> + <VirtualHost 192.168.1.1 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/server1<br /> + ServerName server.example.com<br /> + ServerAlias server<br /> + </span> + </VirtualHost> + </code></p></div> + + <p>Ainsi, les requtes en provenance de chacun des deux rseaux + seront servies par le mme <code>VirtualHost</code>.</p> + + <div class="note"> + <h3>Note :</h3><p>Sur le rseau interne, il est possible + d'utiliser le nom raccourci <code>server</code> au lieu du nom + complet <code>server.example.com</code>.</p> + + <p>Notez galement que dans l'exemple prcdent, vous pouvez + remplacer la liste des adresses IP par des <code>*</code> afin + que le serveur rponde de la mme manire sur toutes ses + adresses.</p> + </div> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="port" id="port">Servir diffrents sites sur diffrents + ports.</a></h2> + + <p>Vous disposez de plusieurs domaines pointant sur la mme adresse + IP et vous voulez galement servir de multiples ports. Vous y + parviendrez en dfinissant les ports dans la directive + "NameVirtualHost". Si vous tentez d'utiliser <VirtualHost + name:port> sans directive NameVirtualHost name:port, ou tentez + d'utiliser la directive Listen, votre configuration ne fonctionnera + pas.</p> + + <div class="example"><h3>Configuration du serveur</h3><p><code> + + + Listen 80<br /> + Listen 8080<br /> + <br /> + NameVirtualHost 172.20.30.40:80<br /> + NameVirtualHost 172.20.30.40:8080<br /> + <br /> + <VirtualHost 172.20.30.40:80><br /> + <span class="indent"> + ServerName www.example1.com<br /> + DocumentRoot /www/domain-80<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40:8080><br /> + <span class="indent"> + ServerName www.example1.com<br /> + DocumentRoot /www/domain-8080<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40:80><br /> + <span class="indent"> + ServerName www.example2.org<br /> + DocumentRoot /www/otherdomain-80<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40:8080><br /> + <span class="indent"> + ServerName www.example2.org<br /> + DocumentRoot /www/otherdomain-8080<br /> + </span> + </VirtualHost> + </code></p></div> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="ip" id="ip">Hbergement virtuel bas sur IP</a></h2> + + <p>Le serveur dispose de deux adresses IP (<code>172.20.30.40</code> + et <code>172.20.30.50</code>) correspondant respectivement aux noms + <code>www.example1.com</code> et <code>www.example2.org</code>.</p> + + <div class="example"><h3>Configuration du serveur</h3><p><code> + + + Listen 80<br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/example1<br /> + ServerName www.example1.com<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.50><br /> + <span class="indent"> + DocumentRoot /www/example2<br /> + ServerName www.example2.org<br /> + </span> + </VirtualHost> + </code></p></div> + + <p>Les requtes provenant d'adresses non spcifies dans l'une des + directives <code><VirtualHost></code> (comme pour + <code>localhost</code> par exemple) seront diriges vers le serveur + principal, s'il en existe un.</p> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="ipport" id="ipport">Hbergements virtuels mixtes bass sur + les ports et sur les IP</a></h2> + + <p>Le serveur dispose de deux adresses IP (<code>172.20.30.40</code> + et <code>172.20.30.50</code>) correspondant respectivement aux noms + <code>www.example1.com</code> et <code>www.example2.org</code>. + Pour chacun d'eux, nous voulons un hbergement sur les ports 80 + et 8080.</p> + + <div class="example"><h3>Configuration du serveur</h3><p><code> + + + Listen 172.20.30.40:80<br /> + Listen 172.20.30.40:8080<br /> + Listen 172.20.30.50:80<br /> + Listen 172.20.30.50:8080<br /> + <br /> + <VirtualHost 172.20.30.40:80><br /> + <span class="indent"> + DocumentRoot /www/example1-80<br /> + ServerName www.example1.com<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40:8080><br /> + <span class="indent"> + DocumentRoot /www/example1-8080<br /> + ServerName www.example1.com<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.50:80><br /> + <span class="indent"> + DocumentRoot /www/example2-80<br /> + ServerName www.example1.org<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.50:8080><br /> + <span class="indent"> + DocumentRoot /www/example2-8080<br /> + ServerName www.example2.org<br /> + </span> + </VirtualHost> + </code></p></div> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="mixed" id="mixed">Hbergements virtuels mixtes bas sur + les noms et sur IP</a></h2> + + <p>Pour certaines adresses, des serveurs virtuels seront dfinis + par nom, et pour d'autres, ils seront dfinis par IP.</p> + + <div class="example"><h3>Configuration du serveur</h3><p><code> + + + Listen 80<br /> + <br /> + NameVirtualHost 172.20.30.40<br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/example1<br /> + ServerName www.example1.com<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/example2<br /> + ServerName www.example2.org<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/example3<br /> + ServerName www.example3.net<br /> + </span> + </VirtualHost><br /> + <br /> + # "par-IP"<br /> + <VirtualHost 172.20.30.50><br /> + <span class="indent"> + DocumentRoot /www/example4<br /> + ServerName www.example4.edu<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.60><br /> + <span class="indent"> + DocumentRoot /www/example5<br /> + ServerName www.example5.gov<br /> + </span> + </VirtualHost> + </code></p></div> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="proxy" id="proxy">Utilisation simultane de + <code>Virtual_host</code> et de mod_proxy</a></h2> + + <p>L'exemple suivant montre comment une machine peut mandater + un serveur virtuel fonctionnant sur le serveur d'une autre machine. + Dans cet exemple, un serveur virtuel de mme nom est configur sur + une machine l'adresse <code>192.168.111.2</code>. La directive + <code class="directive"><a href="../mod/mod_proxy.html#proxypreservehost on">ProxyPreserveHost On</a></code> est + employe pour permette au nom de domaine d'tre prserv lors du + transfert, au cas o plusieurs noms de domaines cohabitent sur + une mme machine.</p> + + <div class="example"><p><code> + <VirtualHost *:*><br /> + ProxyPreserveHost On<br /> + ProxyPass / http://192.168.111.2<br /> + ProxyPassReverse / http://192.168.111.2/<br /> + ServerName hostname.example.com<br /> + </VirtualHost> + </code></p></div> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="default" id="default">Utilisation de serveurs virtuels + <code>_default_</code></a></h2> + + <h3><a name="defaultallports" id="defaultallports">Serveurs virtuels + <code>_default_</code> pour tous les ports</a></h3> + + <p>Exemple de capture de <em>toutes</em> les requtes manant + d'adresses IP ou de ports non connus, <em>c'est--dire</em>, d'un + couple adresse/port non trait par aucun autre serveur virtuel.</p> + + <div class="example"><h3>Configuration du serveur</h3><p><code> + + + <VirtualHost _default_:*><br /> + <span class="indent"> + DocumentRoot /www/default<br /> + </span> + </VirtualHost> + </code></p></div> + + <p>L'utilisation d'un tel serveur virtuel avec un joker pour le + port empche de manire efficace qu'une requte n'atteigne le + serveur principal.</p> + + <p>Un serveur virtuel par dfaut ne servira jamais une requte + qui est envoye vers un couple adresse/port utilise par un + serveur virtuel par nom. Si la requte contient un en-tte + <code>Host:</code> inconnu, ou si celui-ci est absent, elle + sera toujours servie par le serveur virtuel primaire par nom + (celui correspondant ce couple adresse/port trouv en premier + dans le fichier de configuration).</p> + + <p>Vous pouvez utiliser une directive + <code class="directive"><a href="../mod/mod_alias.html#aliasmatch">AliasMatch</a></code> ou + <code class="directive"><a href="../mod/mod_rewrite.html#rewriterule">RewriteRule</a></code> afin de + rcrire une requte pour une unique page d'information (ou pour + un script).</p> + + + <h3><a name="defaultdifferentports" id="defaultdifferentports">Serveurs virtuels + <code>_default_</code> pour des ports diffrents</a></h3> + + <p>La configuration est similaire l'exemple prcdent, mais + le serveur coute sur plusieurs ports et un second serveur virtuel + <code>_default_</code> pour le port 80 est ajout.</p> + + <div class="example"><h3>Configuration du serveur</h3><p><code> + + + <VirtualHost _default_:80><br /> + <span class="indent"> + DocumentRoot /www/default80<br /> + # ...<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost _default_:*><br /> + <span class="indent"> + DocumentRoot /www/default<br /> + # ...<br /> + </span> + </VirtualHost> + </code></p></div> + + <p>Le serveur virtuel par dfaut dfini pour le port 80 (il doit + imprativement tre plac avant un autre serveur virtuel par + dfaut traitant tous les ports grce au joker *) capture toutes + les requtes envoyes sur une adresse IP non spcifie. Le + serveur principal n'est jamais utilis pour servir une requte.</p> + + + <h3><a name="defaultoneport" id="defaultoneport">Serveurs virtuels + <code>_default_</code> pour un seul port</a></h3> + + <p>Nous voulons crer un serveur virtuel par dfaut seulement + pour le port 80.</p> + + <div class="example"><h3>Configuration du serveur</h3><p><code> + + + <VirtualHost _default_:80><br /> + DocumentRoot /www/default<br /> + ...<br /> + </VirtualHost> + </code></p></div> + + <p>Une requte vers une adresse non spcifie sur le port 80 + sera servie par le serveur virtuel par dfaut, et toute autre + requte vers une adresse et un port non spcifis sera servie + par le serveur principal.</p> + + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="migrate" id="migrate">Migration d'un serveur virtuel + par nom en un serveur virtuel par IP</a></h2> + + <p>Le serveur virtuel par nom avec le nom de domaine + <code>www.example2.org</code> (de notre <a href="#name">exemple + par nom</a>) devrait obtenir sa propre adresse IP. Pendant la + phase de migration, il est possible d'viter les problmes avec + les noms de serveurs et autres serveurs mandataires qui mmorisent + les vielles adresses IP pour les serveurs virtuels par nom.<br /> + La solution est simple, car il suffit d'ajouter la nouvelle + adresse IP (<code>172.20.30.50</code>) dans la directive + <code>VirtualHost</code>.</p> + + <div class="example"><h3>Configuration du serveur</h3><p><code> + + + Listen 80<br /> + ServerName www.example1.com<br /> + DocumentRoot /www/example1<br /> + <br /> + NameVirtualHost 172.20.30.40<br /> + <br /> + <VirtualHost 172.20.30.40 172.20.30.50><br /> + <span class="indent"> + DocumentRoot /www/example2<br /> + ServerName www.example2.org<br /> + # ...<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/example3<br /> + ServerName www.example3.net<br /> + ServerAlias *.example3.net<br /> + # ...<br /> + </span> + </VirtualHost> + </code></p></div> + + <p>Le serveur virtuel peut maintenant tre joint par la nouvelle + adresse (comme un serveur virtuel par IP) et par l'ancienne + adresse (comme un serveur virtuel par nom).</p> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="serverpath" id="serverpath">Utilisation de la directive + <code>ServerPath</code></a></h2> + + <p>Dans le cas o vous disposez de deux serveurs virtuels par nom, + le client doit transmettre un en-tte <code>Host:</code> correct + pour dterminer le serveur concern. Les vieux clients HTTP/1.0 + n'envoient pas un tel en-tte et Apache n'a aucun indice pour + connatre le serveur virtuel devant tre joint (il sert la + requte partir d'un serveur virtuel primaire). Dans un soucis + de prserver la compatibilit descendante, il suffit de crer + un serveur virtuel primaire charg de retourner une page contenant + des liens dont les URLs auront un prfixe identifiant les serveurs + virtuels par nom.</p> + + <div class="example"><h3>Configuration du serveur</h3><p><code> + + + NameVirtualHost 172.20.30.40<br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + # Serveur virtuel primaire<br /> + DocumentRoot /www/subdomain<br /> + RewriteEngine On<br /> + RewriteRule ^/.* /www/subdomain/index.html<br /> + # ...<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40><br /> + DocumentRoot /www/subdomain/sub1<br /> + <span class="indent"> + ServerName www.sub1.domain.tld<br /> + ServerPath /sub1/<br /> + RewriteEngine On<br /> + RewriteRule ^(/sub1/.*) /www/subdomain$1<br /> + # ...<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/subdomain/sub2<br /> + ServerName www.sub2.domain.tld<br /> + ServerPath /sub2/<br /> + RewriteEngine On<br /> + RewriteRule ^(/sub2/.*) /www/subdomain$1<br /> + # ...<br /> + </span> + </VirtualHost> + </code></p></div> + + <p> cause de la directive + <code class="directive"><a href="../mod/core.html#serverpath">ServerPath</a></code>, une requte sur + une URL <code>http://www.sub1.domain.tld/sub1/</code> est + <em>toujours</em> servie par le serveur sub1-vhost.<br /> + Une requte sur une URL <code>http://www.sub1.domain.tld/</code> n'est + servie par le serveur sub1-vhost que si le client envoie un en-tte + <code>Host:</code> correct. Si aucun en-tte <code>Host:</code> + n'est transmis, le serveur primaire sera utilis.<br /> + Notez qu'il y a une singularit : une requte sur + <code>http://www.sub2.domain.tld/sub1/</code> est galement servie + par le serveur sub1-vhost si le client n'envoie pas d'en-tte + <code>Host:</code>.<br /> + Les directives <code class="directive"><a href="../mod/mod_rewrite.html#rewriterule">RewriteRule</a></code> + sont employes pour s'assurer que le client qui envoie un en-tte + <code>Host:</code> correct puisse utiliser d'autres variantes d'URLs, + <em>c'est--dire</em> avec ou sans prfixe d'URL.</p> + + </div></div> +<div class="bottomlang"> +<p><span>Langues Disponibles: </span><a href="../en/vhosts/examples.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/examples.html" title="Franais"> fr </a> | +<a href="../ja/vhosts/examples.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/examples.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Authoris sous <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossaire</a> | <a href="../sitemap.html">Plan du site</a></p></div> +</body></html>
\ No newline at end of file diff --git a/docs/manual/vhosts/examples.html.ja.euc-jp b/docs/manual/vhosts/examples.html.ja.euc-jp new file mode 100644 index 00000000..a162ee25 --- /dev/null +++ b/docs/manual/vhosts/examples.html.ja.euc-jp @@ -0,0 +1,648 @@ +<?xml version="1.0" encoding="EUC-JP"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>СۥȤ - Apache HTTP </title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/">⥸塼</a> | <a href="../mod/directives.html">ǥ쥯ƥ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Ѹ</a> | <a href="../sitemap.html">ȥޥå</a></p> +<p class="apache">Apache HTTP С 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP </a> > <a href="http://httpd.apache.org/docs/">ɥơ</a> > <a href="../">С 2.2</a> > <a href="./">Сۥ</a></div><div id="page-content"><div id="preamble"><h1>СۥȤ</h1> +<div class="toplang"> +<p><span>Available Languages: </span><a href="../en/vhosts/examples.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/examples.html" hreflang="fr" rel="alternate" title="Franais"> fr </a> | +<a href="../ja/vhosts/examples.html" title="Japanese"> ja </a> | +<a href="../ko/vhosts/examples.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div> + + + <p>ʸϡСۥȤκݤ + 褯ΤǤꤷƤоݤ <a href="name-based.html">̾١</a> <a href="ip-based.html">IP ١</a> ΥСۥȤȤä + ĤΥФʣΥ֥ȤѤƤǤ + </p> + +</div> +<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#purename">Ĥ IP ɥ쥹ǤĤ̾١ + ֥Ȥ¹Ԥ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#twoips">ʣ IP ɥ쥹ΤۥȤ̾١ + ۥƥԤʤ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#intraextra">㤦 IP ɥ쥹 (㤨Сȳɥ쥹) + ƱƥĤ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#port">㤦ݡȤǰ㤦ȤĤ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#ip">IP ١ΥСۥƥ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#ipport">ݡȥ١ IP ١κä + Сۥ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#mixed">̾١ IP ١ + Сۥ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#proxy"><code>Virtual_host</code> + mod_proxy ʻѤ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#default"><code>_default_</code> ΥСۥȤ + Ȥ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#migrate">̾١ΥСۥȤ IP ١ + СۥȤ˰ܹԤ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#serverpath"><code>ServerPath</code> ǥ쥯ƥ֤ + Ȥ</a></li> +</ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="purename" id="purename">Ĥ IP ɥ쥹ǤĤ̾١ + ֥Ȥ¹Ԥ</a></h2> + + <p>Ф IP ɥ쥹ijƤƤơDNS ǥޥ + ʣ̾ (CNAME) ꤵƤޤΥޥ + <code>www.example.com</code> <code>www.example.org</code> + ΤΥ֥Ф¹ԤȤޤ</p> + + <div class="note"><h3></h3><p> + Apache ФǥСۥȤǡ + Τʤ֤ˤΥۥ̾б DNS Υȥ꤬ + 줿ϤޤΥФ IP ɥ쥹˲褵 + 褦 DNS ̾Ͽʤ<em>ʤޤ</em> + Ǥʤï⤢ʤΥ֥Ȥ뤳ȤϤǤޤ + ǤΥƥȤΤ <code>hosts</code> ե + ȥɲä뤳ȤǤޤξϤ + hosts ȥΤޥ餷ưޤ</p> + </div> + + <div class="example"><h3></h3><p><code> + + + # Ensure that Apache listens on port 80<br /> + Listen 80<br /> + <br /> + # Listen for virtual host requests on all IP addresses<br /> + NameVirtualHost *:80<br /> + <br /> + <VirtualHost *:80><br /> + <span class="indent"> + DocumentRoot /www/example1<br /> + ServerName www.example.com<br /> + <br /> + # Other directives here<br /> + <br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost *:80><br /> + <span class="indent"> + DocumentRoot /www/example2<br /> + ServerName www.example.org<br /> + <br /> + # Other directives here<br /> + <br /> + </span> + </VirtualHost> + </code></p></div> + + <p>ꥹϤ٤ƤΥɥ쥹˥ޥåޤΤǡ祵Ф + ꥯȤޤ<code>www.example.com</code> + ǽˤ뤿ᡢ̤ͥϰֹ⤯ʤꡢ<cite>default</cite> ⤷ + <cite>primary</cite> ΥФȹͤ뤳ȤǤޤĤޤꡢꥯȤ + ɤ <code>ServerName</code> ǥ쥯ƥ֤ˤޥåʤ硢 + ֺǽ <code>VirtualHost</code> ˤ갷ޤ</p> + + <div class="note"><h3></h3> + + <p><code>*</code> ƥμºݤ IP ɥ쥹֤ + ȤǤޤξ <code>VirtualHost</code> ΰ + <code>NameVirtualHost</code> ΰƱ<em>ʤФʤޤ + </em>:</p> + + <div class="example"><p><code> + NameVirtualHost 172.20.30.40<br /> + <br /> + <VirtualHost 172.20.30.40><br /> + # etc ... + </code></p></div> + + <p>IP ɥ쥹ͽ¬Բǽʥƥ + 㤨ХץХưŪ IP ɥ쥹Ʋ餫 + ʥߥå DNS ȤäƤʤɡˤƤϡ<code>*</code> + ϤǤ<code>*</code> Ϥ٤Ƥ IP ɥ쥹 + ޥåޤΤǡˤƤ IP ɥ쥹ѹƤ + ѹưޤ</p> + </div> + + <p>̾١ΥСۥƥǤϤۤܤ٤Ƥξǡ + 嵭Ǵ˾ˤʤäƤ뤳ȤǤ礦 + ºݤ꤬ưʤΤϡIP ɥ쥹ݡȤΰ㤤ˤä + 㤦ƥĤȤǤ</p> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="twoips" id="twoips">ʣ IP ɥ쥹ΤۥȤ̾١ + ۥƥԤʤ</a></h2> + + <div class="note"> + <h3></h3><p>Ƥˡ IP ɥ쥹 + ĤäƤƱͤˤǤޤ</p> + </div> + + <p>Фˤ IP ɥ쥹ĤƤޤ + (<code>172.20.30.40</code>) Ǥϼ祵 + <code>server.domain.com</code> ⤦ + (<code>172.20.30.50</code>) ǤĤʾο + СۥȤޤ</p> + + <div class="example"><h3>Ф</h3><p><code> + + + Listen 80<br /> + <br /> + # This is the "main" server running on 172.20.30.40<br /> + ServerName server.domain.com<br /> + DocumentRoot /www/mainserver<br /> + <br /> + # This is the other address<br /> + NameVirtualHost 172.20.30.50<br /> + <br /> + <VirtualHost 172.20.30.50><br /> + <span class="indent"> + DocumentRoot /www/example1<br /> + ServerName www.example.com<br /> + <br /> + # Other directives here ...<br /> + <br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.50><br /> + <span class="indent"> + DocumentRoot /www/example2<br /> + ServerName www.example.org<br /> + <br /> + # Other directives here ...<br /> + <br /> + </span> + </VirtualHost> + </code></p></div> + + <p><code>172.20.30.50</code> ʳΥɥ쥹ؤΥꥯȤϼ祵 + ޤ<code>172.20.30.50</code> ؤΡ̤ΤΥۥ̾ޤ + <code>Host:</code> إåʤΥꥯȤ <code>www.example.com</code> + ޤ</p> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="intraextra" id="intraextra">㤦 IP ɥ쥹 (㤨Сȳɥ쥹) + ƱƥĤ</a></h2> + + <p>Хޥ IP ɥ쥹 (<code>192.168.1.1</code> + <code>172.20.30.40</code>) äƤޤΥޥ + (ȥͥå) (ͥå) Υͥåȥδ֤ + ޤ<code>server.example.com</code> ϥͥåȥγ + ɥ쥹 (<code>172.20.30.40</code>) ȤƲ褵ޤ + ͥåȥ椫ɥ쥹 (<code>192.168.1.1</code>) + ȤƲ褵ޤ</p> + + <p><code>VirtualHost</code> ĤǥФΥꥯȤ + ΥꥯȤξƱƥĤDZ褦ˤǤޤ</p> + + <div class="example"><h3>Ф</h3><p><code> + + + NameVirtualHost 192.168.1.1<br /> + NameVirtualHost 172.20.30.40<br /> + <br /> + <VirtualHost 192.168.1.1 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/server1<br /> + ServerName server.example.com<br /> + ServerAlias server<br /> + </span> + </VirtualHost> + </code></p></div> + + <p>ǤɤΥͥåȥΥꥯȤƱ <code>VirtualHost</code> + ǰ褦ˤʤޤ</p> + + <div class="note"><h3>:</h3><p>ͥåȥǤϴʥۥ̾ + <code>server.example.com</code> ˡñ <code>server</code> + ȤȤǤޤ</p> + + <p>ǤϡIP ɥ쥹ΥꥹȤ٤ƤΥɥ쥹 + ƱƥĤDZ <code>*</code> ֤ޤ</p> + </div> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="port" id="port">㤦ݡȤǰ㤦ȤĤ</a></h2> + + <p>Ʊ IP ʣΥɥᥤꡢʣΥݡȤȤä + ꥯȤȤޤ"NameVirtualHost" + ݡȤ뤳Ȥǡưޤ + NameVirtualHost name:port ̵ Listen ǥ쥯ƥ֤ + <VirtualHost name:port> ȤȤƤ⡢ưޤ</p> + + <div class="example"><h3>Ф</h3><p><code> + + + Listen 80<br /> + Listen 8080<br /> + <br /> + NameVirtualHost 172.20.30.40:80<br /> + NameVirtualHost 172.20.30.40:8080<br /> + <br /> + <VirtualHost 172.20.30.40:80><br /> + <span class="indent"> + ServerName www.example.com<br /> + DocumentRoot /www/domain-80<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40:8080><br /> + <span class="indent"> + ServerName www.example.com<br /> + DocumentRoot /www/domain-8080<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40:80><br /> + <span class="indent"> + ServerName www.example.org<br /> + DocumentRoot /www/otherdomain-80<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40:8080><br /> + <span class="indent"> + ServerName www.example.org<br /> + DocumentRoot /www/otherdomain-8080<br /> + </span> + </VirtualHost> + </code></p></div> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="ip" id="ip">IP ١ΥСۥƥ</a></h2> + + <p>Ф <code>www.example.com</code> <code>www.example.org</code> + ˤ줾褵롢Ĥ IP ɥ쥹 (<code>172.20.30.40</code> + <code>172.20.30.50</code>) ޤ</p> + + <div class="example"><h3>Ф</h3><p><code> + + + Listen 80<br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/example1<br /> + ServerName www.example.com<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.50><br /> + <span class="indent"> + DocumentRoot /www/example2<br /> + ServerName www.example.org<br /> + </span> + </VirtualHost> + </code></p></div> + + <p><code><VirtualHost></code> ǥ쥯ƥ֤ΤɤǤ + ꤵƤʤɥ쥹 (㤨 <code>localhost</code>) ϡ + 祵ФФ˹Ԥޤ</p> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="ipport" id="ipport">ݡȥ١ IP ١κä + Сۥ</a></h2> + + <p>ХޥϤ줾 <code>www.example.com</code> + <code>www.example.org</code> ˤ줾褵롢IP ɥ쥹 + (<code>172.20.30.40</code> <code>172.20.30.50</code>) äƤޤ + ɤݡ 80 8080 ǥۥȤ餻ޤ</p> + + <div class="example"><h3>Ф</h3><p><code> + + + Listen 172.20.30.40:80<br /> + Listen 172.20.30.40:8080<br /> + Listen 172.20.30.50:80<br /> + Listen 172.20.30.50:8080<br /> + <br /> + <VirtualHost 172.20.30.40:80><br /> + <span class="indent"> + DocumentRoot /www/example1-80<br /> + ServerName www.example.com<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40:8080><br /> + <span class="indent"> + DocumentRoot /www/example1-8080<br /> + ServerName www.example.com<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.50:80><br /> + <span class="indent"> + DocumentRoot /www/example2-80<br /> + ServerName www.example.org<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.50:8080><br /> + <span class="indent"> + DocumentRoot /www/example2-8080<br /> + ServerName www.example.org<br /> + </span> + </VirtualHost> + </code></p></div> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="mixed" id="mixed">̾١ IP ١ + Сۥ</a></h2> + + <p>ĤΥޥǤ̾١Ρ¾Ǥ IP ١ΥС + ۥȤޤ</p> + + <div class="example"><h3>Ф</h3><p><code> + + + Listen 80<br /> + <br /> + NameVirtualHost 172.20.30.40<br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/example1<br /> + ServerName www.example.com<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/example2<br /> + ServerName www.example.org<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/example3<br /> + ServerName www.example3.net<br /> + </span> + </VirtualHost><br /> + <br /> + # IP-based<br /> + <VirtualHost 172.20.30.50><br /> + <span class="indent"> + DocumentRoot /www/example4<br /> + ServerName www.example4.edu<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.60><br /> + <span class="indent"> + DocumentRoot /www/example5<br /> + ServerName www.example5.gov<br /> + </span> + </VirtualHost> + </code></p></div> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="proxy" id="proxy"><code>Virtual_host</code> + mod_proxy ʻѤ</a></h2> + + <p>ϡե¦ΥСۥȤ¾Υޥإץޤ + Ǥ <code>192.168.111.2</code> ΥޥǤϥСۥ̾ + Ʊ̾ꤵƤޤʣΥۥ̾Υޥ˥ץ + ϡ<code class="directive"><a href="../mod/mod_proxy.html#proxypreservehost on">ProxyPreserveHost On</a></code> + ǥ쥯ƥ֤Ȥäơ˾Υۥ̾Ϥ褦ˤʤޤ + </p> + + <div class="example"><p><code> + <VirtualHost *:*><br /> + ProxyPreserveHost On<br /> + ProxyPass / http://192.168.111.2<br /> + ProxyPassReverse / http://192.168.111.2/<br /> + ServerName hostname.example.com<br /> + </VirtualHost> + </code></p></div> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="default" id="default"><code>_default_</code> ΥСۥȤ + Ȥ</a></h2> + + <h3><a name="defaultallports" id="defaultallports">٤ƤΥݡȤФ + <code>_default_</code> Сۥ</a></h3> + + <p>̤ IP ɥ쥹ȥݡȡ<em>Ĥޤ</em>¾ΥСۥȤ + ȤƤʤɥ쥹ȥݡȤȤ߹碌ؤ<em>٤Ƥ</em>ꥯȤ + ޤ</p> + + <div class="example"><h3>Ф</h3><p><code> + + + <VirtualHost _default_:*><br /> + <span class="indent"> + DocumentRoot /www/default<br /> + </span> + </VirtualHost> + </code></p></div> + + <p>Τ褦˥磻ɥɤΥݡȤǥǥեȤΥСۥȤ + ꤹȡ祵Ф˥ꥯȤԤΤɤޤ</p> + + <p>ǥեȤΥСۥȤ̾١ΥСۥȤ + ȤƤ륢ɥ쥹ȥݡȤȤ줿ꥯȤȤ + ޤꥯȤ <code>Host:</code> إå䤽 + إåʤäꤹϴ̾١Сۥ ( + ɥ쥹ȥݡȤեǺǽΥСۥ) ˤ + ޤ</p> + + <p>ɤʥꥯȤǤ <code class="directive"><a href="../mod/mod_alias.html#aliasmatch">AliasMatch</a></code> + <code class="directive"><a href="../mod/mod_rewrite.html#rewriterule">RewriteRule</a></code> Ȥä + ñξڡ (䥹ץ) ˽뤳ȤǤޤ</p> + + + <h3><a name="defaultdifferentports" id="defaultdifferentports">㤦ݡȤΤ + <code>_default_</code> Сۥ</a></h3> + + <p>ĤȤۤƱǤФʣΥݡȤ listen Ƥꡢ + 80 ֥ݡȤФĤ <code>_default_</code> СۥȤ + ꤷǤ</p> + + <div class="example"><h3>Ф</h3><p><code> + + + <VirtualHost _default_:80><br /> + <span class="indent"> + DocumentRoot /www/default80<br /> + # ...<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost _default_:*><br /> + <span class="indent"> + DocumentRoot /www/default<br /> + # ...<br /> + </span> + </VirtualHost> + </code></p></div> + + <p>80 ֥ݡȤΥǥեȥСۥ (磻ɥɥݡȤ + ǥեȥСۥȤ˽Ƥʤ<em>ʤޤ</em>) + ̤ IP ɥ쥹줿٤ƤΥꥯȤޤ + 祵ФϥꥯȤޤ</p> + + + <h3><a name="defaultoneport" id="defaultoneport">ĤΥݡȤФƤ + <code>_default_</code> Сۥ</a></h3> + + <p>80 ֥ݡȤˤϥǥեȤΥСۥȤɬפǡ¾ + СۥȤϥǥեȤɬפʤǤ</p> + + <div class="example"><h3>Ф</h3><p><code> + + + <VirtualHost _default_:80><br /> + DocumentRoot /www/default<br /> + ...<br /> + </VirtualHost> + </code></p></div> + + <p>80 ֥ݡȤؤΥɥ쥹̤ΥꥯȤϥǥեȤΥС + ۥȤޤ¾̤Υɥ쥹ȥݡȤؤΥꥯȤ + 祵Фޤ</p> + + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="migrate" id="migrate">̾١ΥСۥȤ IP ١ + СۥȤ˰ܹԤ</a></h2> + + <p>ۥ̾̾ <code>www.example.org</code> ΥСۥ + (<a href="#name">̾١</a> 2 ܤ) Ѥ IP ɥ쥹 + Ȥޤ̾١ΥСۥȤθŤ IP ɥ쥹 + å夷Ƥ͡ॵФץΤ˰ܹԴξ + СۥȤȤޤ</p> + + <p>ϴñǤñ˿ IP ɥ쥹 (<code>172.20.30.50</code>) + <code>VirtualHost</code> ǥ쥯ƥ֤ɲä뤳Ȥ + Ǥޤ</p> + + <div class="example"><h3></h3><p><code> + + + Listen 80<br /> + ServerName www.example.com<br /> + DocumentRoot /www/example1<br /> + <br /> + NameVirtualHost 172.20.30.40<br /> + <br /> + <VirtualHost 172.20.30.40 172.20.30.50><br /> + <span class="indent"> + DocumentRoot /www/example2<br /> + ServerName www.example.org<br /> + # ...<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/example3<br /> + ServerName www.example.net<br /> + ServerAlias *.example.net<br /> + # ...<br /> + </span> + </VirtualHost> + </code></p></div> + + <p>ΥСۥȤϿɥ쥹 (IP ١ΥСۥȤȤ) + ȸŤɥ쥹(̾١ΥСۥȤȤ) ξ + Ǥޤ</p> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="serverpath" id="serverpath"><code>ServerPath</code> ǥ쥯ƥ֤ + Ȥ</a></h2> + + <p>̾١ΥСۥȤĤ륵ФȤޤ + СۥȤ뤿ˤϥ饤Ȥ + <code>Host:</code> إåʤФʤޤ + Ť HTTP/1.0 ϤΤ褦ʥإåʤΤǡApache ϥ饤Ȥ + ɤΥСۥȤտޤΤäѤ狼ޤ + (ʤΤǡСۥȤǥꥯȤޤ) + ǽʸ¤β̸ߴ뤿ᡢ̾١ΥСۥȤ + URL ƬؤΥν줿ڡ֤ + СۥȤޤ</p> + + <div class="example"><h3>Ф</h3><p><code> + + + NameVirtualHost 172.20.30.40<br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + # primary vhost<br /> + DocumentRoot /www/subdomain<br /> + RewriteEngine On<br /> + RewriteRule ^/.* /www/subdomain/index.html<br /> + # ...<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40><br /> + DocumentRoot /www/subdomain/sub1<br /> + <span class="indent"> + ServerName www.sub1.domain.tld<br /> + ServerPath /sub1/<br /> + RewriteEngine On<br /> + RewriteRule ^(/sub1/.*) /www/subdomain$1<br /> + # ...<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/subdomain/sub2<br /> + ServerName www.sub2.domain.tld<br /> + ServerPath /sub2/<br /> + RewriteEngine On<br /> + RewriteRule ^(/sub2/.*) /www/subdomain$1<br /> + # ...<br /> + </span> + </VirtualHost> + </code></p></div> + + <p><code class="directive"><a href="../mod/core.html#serverpath">ServerPath</a></code> ǥ쥯ƥ֤ + ꡢURL <code>http://www.sub1.domain.tld/sub1/</code> + <em></em> sub1-vhost ˤ갷ޤURL + <code>http://www.sub1.domain.tld/</code> ؤΥꥯȤ + 饤Ȥ <code>Host:</code> إåäȤˤΤ + sub1-vhost ޤ<code>Host:</code> إåʤ + 饤ȤϼۥȤξڡޤ</p> + + <p>Ĵ̯ư뤳ȤϳФƤƤ + <code>http://www.sub2.domain.tld/sub1/</code> ؤΥꥯȤ + <code>Host:</code> إåʤ sub1-vhost ˤ갷ޤ</p> + + <p> <code>Host:</code> إåä饤ȤϤɤ + URL<em>Ĥޤ</em>Ƭ̵Ȥ褦 + <code class="directive"><a href="../mod/mod_rewrite.html#rewriterule">RewriteRule</a></code> ǥ쥯ƥ֤ + ȤƤޤ</p> + </div></div> +<div class="bottomlang"> +<p><span>Available Languages: </span><a href="../en/vhosts/examples.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/examples.html" hreflang="fr" rel="alternate" title="Franais"> fr </a> | +<a href="../ja/vhosts/examples.html" title="Japanese"> ja </a> | +<a href="../ko/vhosts/examples.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/">⥸塼</a> | <a href="../mod/directives.html">ǥ쥯ƥ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Ѹ</a> | <a href="../sitemap.html">ȥޥå</a></p></div> +</body></html>
\ No newline at end of file diff --git a/docs/manual/vhosts/examples.html.ko.euc-kr b/docs/manual/vhosts/examples.html.ko.euc-kr new file mode 100644 index 00000000..99590889 --- /dev/null +++ b/docs/manual/vhosts/examples.html.ko.euc-kr @@ -0,0 +1,629 @@ +<?xml version="1.0" encoding="EUC-KR"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>ȣƮ - Apache HTTP Server</title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/"></a> | <a href="../mod/directives.html">þ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html"></a> | <a href="../sitemap.html">Ʈ</a></p> +<p class="apache">Apache HTTP Server Version 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">ȣƮ</a></div><div id="page-content"><div id="preamble"><h1>ȣƮ </h1> +<div class="toplang"> +<p><span> : </span><a href="../en/vhosts/examples.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/examples.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="../ja/vhosts/examples.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/examples.html" title="Korean"> ko </a></p> +</div> +<div class="outofdate"> ֽ ƴմϴ. + ֱٿ ϼ.</div> + + + <p> ǵǴ ȣƮ + Ϸ . Ȳ <a href="name-based.html"≯</a>̳ <a href="ip-based.html">IP</a> ȣƮ + Ʈ Ϸ ̴. Ͻ ڿ + Ͽ Ʈ ϴ 츦 ٷ + ̴.</p> + +</div> +<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#purename">IP ּ Ѱ ̸ + Ʈ ϱ.</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#twoips"> IP ּҿ ̸ + ȣƮ.</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#intraextra">(ο ܺ ּҿ ) + ٸ IP ּҷ ϱ.</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#port"> Ʈ ٸ Ʈ + ϱ.</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#ip">IP ȣƮ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#ipport">Ʈݰ ip ȥյ + ȣƮ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#mixed"≯ݰ IP ȥյ + ȣƮ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#default"><code>_default_</code> ȣƮ + ϱ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#migrate"≯ ȣƮ IP + ȣƮ ű</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#serverpath"><code>ServerPath</code> + þ ϱ</a></li> +</ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="purename" id="purename">IP ּ Ѱ ̸ + Ʈ ϱ.</a></h2> + + <p> IP ּҰ Ѱ ְ, DNS ּ(CNAMES) + ǻ Ų. ǻͿ <code>www.example.com</code> + <code>www.example.org</code> ϰ ʹ.</p> + + <div class="note"><h3>Note</h3><p>ġ ȣƮ + Ѵٰ ȣƮ DNS ڵ̷ + ʴ´. <em>ݵ</em> DNS IP ּҸ Ű + ̸ ־ Ѵ. ȱ ƹ Ʈ + . ˻غ <code>hosts</code> Ͽ + ߰ , ̴ hosts ǻͿ + ݿȴ.</p> + </div> + + <div class="example"><h3> </h3><p><code> + + + # ġ Ʈ 80 ٸ<br /> + Listen 80<br /> + <br /> + # IP ּҿ ȣƮ û ٸ<br /> + NameVirtualHost *:80<br /> + <br /> + <VirtualHost *:80><br /> + <span class="indent"> + DocumentRoot /www/example1<br /> + ServerName www.example.com<br /> + <br /> + # ٸ þ鵵 ִ<br /> + <br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost *:80><br /> + <span class="indent"> + DocumentRoot /www/example2<br /> + ServerName www.example.org<br /> + <br /> + # ٸ þ鵵 ִ<br /> + <br /> + </span> + </VirtualHost> + </code></p></div> + + <p>ǥ ּҸ ŰǷ, ּ û + ʴ´. <code>www.example.com</code> + Ͽ ó Ƿ 켱 , + <cite>⺻</cite>Ȥ <cite>ʱ</cite> ȴ. + <code>ServerName</code> þ شʴ û + ù° <code>VirtualHost</code> Ѵ.</p> + + <div class="note"> + <h3></h3> + + <p>Ѵٸ <code>*</code> ý IP + ּҸ ִ. + <code>VirtualHost</code> ƱԸƮ + <code>NameVirtualHost</code> ƱԸƮ ġؾ + <em>Ѵ</em>:</p> + + <div class="example"><p><code> + NameVirtualHost 172.20.30.40<br /> + <br /> + <VirtualHost 172.20.30.40><br /> + # ... + </code></p></div> + + <p> ISP IP ּҸ + IP ּҸ 쿡 <code>*</code> ϴ + ϴ. <code>*</code> IP ּҿ + شϹǷ, IP ּҰ Ǿ + ʿ䰡 .</p> + </div> + + <p> κ ̸ ȣƮ . + ܴ ٸ IP ּҳ Ʈ ٸ Ϸ + ̴.</p> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="twoips" id="twoips"> IP ּҿ ̸ + ȣƮ.</a></h2> + + <div class="note"> + <h3></h3><p>⼭ IP ּҰ + 밡ϴ.</p> + </div> + + <p> IP ּҰ ΰִ. ϳ + (<code>172.20.30.40</code>) "" + <code>server.domain.com</code> ϰ, ٸ ϳ + (<code>172.20.30.50</code>) ȣƮ + ̴.</p> + + <div class="example"><h3> </h3><p><code> + + + Listen 80<br /> + <br /> + # 172.20.30.40 ϴ ""̴<br /> + ServerName server.domain.com<br /> + DocumentRoot /www/mainserver<br /> + <br /> + # ٸ ּҴ<br /> + NameVirtualHost 172.20.30.50<br /> + <br /> + <VirtualHost 172.20.30.50><br /> + <span class="indent"> + DocumentRoot /www/example1<br /> + ServerName www.example.com<br /> + <br /> + # ٸ þ鵵 ִ ...<br /> + <br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.50><br /> + <span class="indent"> + DocumentRoot /www/example2<br /> + ServerName www.example.org<br /> + <br /> + # ٸ þ鵵 ִ ...<br /> + <br /> + </span> + </VirtualHost> + </code></p></div> + + <p><code>172.20.30.50</code> ƴ ּҿ û + ּ Ѵ. ȣƮ , <code>Host:</code> + <code>172.20.30.50</code> ûϸ + <code>www.example.com</code> Ѵ.</p> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="intraextra" id="intraextra">(ο ܺ ּҿ ) + ٸ IP ּҷ ϱ.</a></h2> + + <p> ǻͿ IP ּҰ ΰ (<code>192.168.1.1</code> + <code>172.20.30.40</code>) ִ. ǻʹ (Ʈ) + Ʈ ܺ (ͳ) Ʈ ̿ ġѴ. Ʈ ۿ + <code>server.example.com</code> ܺ ּҸ + (<code>172.20.30.40</code>) ǹϰ, Ʈ ο + ̸ ּҷ (<code>192.168.1.1</code>) Ѵ.</p> + + <p> <code>VirtualHost</code> Ѱ ο ܺ + 信 ִ.</p> + + <div class="example"><h3> </h3><p><code> + + + NameVirtualHost 192.168.1.1<br /> + NameVirtualHost 172.20.30.40<br /> + <br /> + <VirtualHost 192.168.1.1 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/server1<br /> + ServerName server.example.com<br /> + ServerAlias server<br /> + </span> + </VirtualHost> + </code></p></div> + + <p> Ʈ û + <code>VirtualHost</code> Ѵ.</p> + + <div class="note"> + <h3>:</h3><p> Ʈ ȣƮ + <code>server.example.com</code> ̸ + <code>server</code> ϴ.</p> + + <p> IP ּ <code>*</code> + Ͽ ּҿ ϰ + ִ.</p> + </div> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="port" id="port"> Ʈ ٸ Ʈ + ϱ.</a></h2> + + <p> IP Ʈ ٸ Ѵٰ + . ̴ "NameVirtualHost" ± Ʈ ϸ + ϴ. NameVirtualHost name:port <VirtualHost + name:port> Ȥ Listen þ ϸ ȵȴ.</p> + + <div class="example"><h3> </h3><p><code> + + + Listen 80<br /> + Listen 8080<br /> + <br /> + NameVirtualHost 172.20.30.40:80<br /> + NameVirtualHost 172.20.30.40:8080<br /> + <br /> + <VirtualHost 172.20.30.40:80><br /> + <span class="indent"> + ServerName www.example.com<br /> + DocumentRoot /www/domain-80<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40:8080><br /> + <span class="indent"> + ServerName www.example.com<br /> + DocumentRoot /www/domain-8080<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40:80><br /> + <span class="indent"> + ServerName www.example.org<br /> + DocumentRoot /www/otherdomain-80<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40:8080><br /> + <span class="indent"> + ServerName www.example.org<br /> + DocumentRoot /www/otherdomain-8080<br /> + </span> + </VirtualHost> + </code></p></div> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="ip" id="ip">IP ȣƮ</a></h2> + + <p> <code>www.example.com</code> + <code>www.example.org</code> شϴ IP ּҸ + (<code>172.20.30.40</code> <code>172.20.30.50</code>) + .</p> + + <div class="example"><h3> </h3><p><code> + + + Listen 80<br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/example1<br /> + ServerName www.example.com<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.50><br /> + <span class="indent"> + DocumentRoot /www/example2<br /> + ServerName www.example.org<br /> + </span> + </VirtualHost> + </code></p></div> + + <p><code><VirtualHost></code> þ ּҿ + شʴ ּҷ ( , <code>localhost</code>) + û ּ ִ ּ Ѵ.</p> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="ipport" id="ipport">Ʈݰ ip ȥյ + ȣƮ</a></h2> + + <p> <code>www.example.com</code> + <code>www.example.org</code> شϴ IP ּҸ + (<code>172.20.30.40</code> <code>172.20.30.50</code>) + . IP 80 8080 Ʈ ȣƮ .</p> + + <div class="example"><h3> </h3><p><code> + + + Listen 172.20.30.40:80<br /> + Listen 172.20.30.40:8080<br /> + Listen 172.20.30.50:80<br /> + Listen 172.20.30.50:8080<br /> + <br /> + <VirtualHost 172.20.30.40:80><br /> + <span class="indent"> + DocumentRoot /www/example1-80<br /> + ServerName www.example.com<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40:8080><br /> + <span class="indent"> + DocumentRoot /www/example1-8080<br /> + ServerName www.example.com<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.50:80><br /> + <span class="indent"> + DocumentRoot /www/example2-80<br /> + ServerName www.example.org<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.50:8080><br /> + <span class="indent"> + DocumentRoot /www/example2-8080<br /> + ServerName www.example.org<br /> + </span> + </VirtualHost> + </code></p></div> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="mixed" id="mixed"≯ݰ IP ȥյ + ȣƮ</a></h2> + + <p>ּ ̸ ȣƮ, ٸ IP + ȣƮ ϰ ʹ.</p> + + <div class="example"><h3> </h3><p><code> + + + Listen 80<br /> + <br /> + NameVirtualHost 172.20.30.40<br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/example1<br /> + ServerName www.example.com<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/example2<br /> + ServerName www.example.org<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/example3<br /> + ServerName www.example3.net<br /> + </span> + </VirtualHost><br /> + <br /> + # IP-<br /> + <VirtualHost 172.20.30.50><br /> + <span class="indent"> + DocumentRoot /www/example4<br /> + ServerName www.example4.edu<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.60><br /> + <span class="indent"> + DocumentRoot /www/example5<br /> + ServerName www.example5.gov<br /> + </span> + </VirtualHost> + </code></p></div> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="default" id="default"><code>_default_</code> ȣƮ + ϱ</a></h2> + + <h3><a name="defaultallports" id="defaultallports"> Ʈ + <code>_default_</code> ȣƮ</a></h3> + + <p> ȣƮ ش IP ּҿ Ʈ + <em></em> û óϱ.</p> + + <div class="example"><h3> </h3><p><code> + + + <VirtualHost _default_:*><br /> + <span class="indent"> + DocumentRoot /www/default<br /> + </span> + </VirtualHost> + </code></p></div> + + <p>default(⺻) ȣƮ Ʈ ϵī带 Ͽ û + ּ .</p> + + <p>default ȣƮ ̸ ȣƮ ϴ + ּ/Ʈ û ʴ´. ų + <code>Host:</code> û ̸ + ȣƮ(Ͽ + ּ/Ʈ ó ȣƮ) Ѵ.</p> + + <p><code class="directive"><a href="../mod/mod_alias.html#aliasmatch">AliasMatch</a></code> + <code class="directive"><a href="../mod/mod_rewrite.html#rewriterule">RewriteRule</a></code> + Ͽ û Ư (Ȥ ũƮ) + ۼ(rewrite) ִ.</p> + + + <h3><a name="defaultdifferentports" id="defaultdifferentports"> Ʈ + <code>_default_</code> ȣƮ</a></h3> + + <p> , Ʈ ٸ 80 + Ʈ ؼ ߰ <code>_default_</code> ȣƮ + ϰ ʹ.</p> + + <div class="example"><h3> </h3><p><code> + + + <VirtualHost _default_:80><br /> + <span class="indent"> + DocumentRoot /www/default80<br /> + # ...<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost _default_:*><br /> + <span class="indent"> + DocumentRoot /www/default<br /> + # ...<br /> + </span> + </VirtualHost> + </code></p></div> + + <p>80 Ʈ default ȣƮ (<em>ݵ</em> + ϵī Ʈ ⺻ ȣƮ ; Ѵ) + IP ּҷ û Ѵ. + ּ û Ѵ.</p> + + + <h3><a name="defaultoneport" id="defaultoneport"> Ʈ + <code>_default_</code> ȣƮ</a></h3> + + <p>80 Ʈ ؼ default ȣƮ ʹ.</p> + + <div class="example"><h3> </h3><p><code> + + + <VirtualHost _default_:80><br /> + DocumentRoot /www/default<br /> + ...<br /> + </VirtualHost> + </code></p></div> + + <p>Ʈ 80 ּҿ û ⺻ + ȣƮ ϰ, ٸ ּҿ Ʈ + û Ѵ.</p> + + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="migrate" id="migrate"≯ ȣƮ IP + ȣƮ ű</a></h2> + + <p>(<a href="#name"≯</a> ù° ) ȣƮ + <code>www.example.org</code> ̸ ȣƮ + ڽ IP ּҸ Ѵ. ̸ ȣƮ + IP ּҸ ijϴ Ӽ Ͻÿ ϱ + ű θ ϰ ʹ.</p> + + <p> + <code>VirtualHost</code> þ IP ּҸ + (<code>172.20.30.50</code>) ߰ϸǹǷ .</p> + + <div class="example"><h3> </h3><p><code> + + + Listen 80<br /> + ServerName www.example.com<br /> + DocumentRoot /www/example1<br /> + <br /> + NameVirtualHost 172.20.30.40<br /> + <br /> + <VirtualHost 172.20.30.40 172.20.30.50><br /> + <span class="indent"> + DocumentRoot /www/example2<br /> + ServerName www.example.org<br /> + # ...<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/example3<br /> + ServerName www.example.net<br /> + ServerAlias *.example.net<br /> + # ...<br /> + </span> + </VirtualHost> + </code></p></div> + + <p> (IP ȣƮ ) ο ּҿ (̸ + ȣƮ ) ּ ȣƮ + ִ.</p> + + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="serverpath" id="serverpath"><code>ServerPath</code> + þ ϱ</a></h2> + + <p> ̸ ȣƮ ִ. ùٸ + ȣƮ ϱ Ŭ̾Ʈ ùٸ + <code>Host:</code> Ѵ. HTTP/1.0 + Ŭ̾Ʈ ϸ ġ Ŭ̾Ʈ + ȣƮ ϴ ( + ȣƮ û Ѵ). ȣȯ + ϱ ȣƮ , ̸ + ȣƮ URL λ縦 ϴ ũ + д.</p> + + <div class="example"><h3> </h3><p><code> + + + NameVirtualHost 172.20.30.40<br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + # primary vhost<br /> + DocumentRoot /www/subdomain<br /> + RewriteEngine On<br /> + RewriteRule ^/.* /www/subdomain/index.html<br /> + # ...<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40><br /> + DocumentRoot /www/subdomain/sub1<br /> + <span class="indent"> + ServerName www.sub1.domain.tld<br /> + ServerPath /sub1/<br /> + RewriteEngine On<br /> + RewriteRule ^(/sub1/.*) /www/subdomain$1<br /> + # ...<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost 172.20.30.40><br /> + <span class="indent"> + DocumentRoot /www/subdomain/sub2<br /> + ServerName www.sub2.domain.tld<br /> + ServerPath /sub2/<br /> + RewriteEngine On<br /> + RewriteRule ^(/sub2/.*) /www/subdomain$1<br /> + # ...<br /> + </span> + </VirtualHost> + </code></p></div> + + <p><code class="directive"><a href="../mod/core.html#serverpath">ServerPath</a></code> þ + URL <code>http://www.sub1.domain.tld/sub1/</code> + û <em></em> subl-ȣƮ Ѵ.<br /> + Ŭ̾Ʈ ùٸ <code>Host:</code> ٸ, + URL <code>http://www.sub1.domain.tld/</code> û + subl-ȣƮ Ѵ. <code>Host:</code> + Ŭ̾Ʈ ȣƮ ִ + Եȴ.</p> + + <p> ϶: Ŭ̾Ʈ + <code>Host:</code> + <code>http://www.sub2.domain.tld/sub1/</code> û + subl-ȣƮ Ѵ.</p> + + <p><code class="directive"><a href="../mod/mod_rewrite.html#rewriterule">RewriteRule</a></code> + þ Ͽ ùٸ <code>Host:</code> + Ŭ̾Ʈ (<em> </em>, URL ġ簡 ְų ) + URL ִ.</p> + + </div></div> +<div class="bottomlang"> +<p><span> : </span><a href="../en/vhosts/examples.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/examples.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="../ja/vhosts/examples.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/examples.html" title="Korean"> ko </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/"></a> | <a href="../mod/directives.html">þ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html"></a> | <a href="../sitemap.html">Ʈ</a></p></div> +</body></html>
\ No newline at end of file diff --git a/docs/manual/vhosts/fd-limits.html b/docs/manual/vhosts/fd-limits.html new file mode 100644 index 00000000..932c75d7 --- /dev/null +++ b/docs/manual/vhosts/fd-limits.html @@ -0,0 +1,15 @@ +URI: fd-limits.html.en +Content-Language: en +Content-type: text/html; charset=ISO-8859-1 + +URI: fd-limits.html.fr +Content-Language: fr +Content-type: text/html; charset=ISO-8859-1 + +URI: fd-limits.html.ja.euc-jp +Content-Language: ja +Content-type: text/html; charset=EUC-JP + +URI: fd-limits.html.ko.euc-kr +Content-Language: ko +Content-type: text/html; charset=EUC-KR diff --git a/docs/manual/vhosts/fd-limits.html.en b/docs/manual/vhosts/fd-limits.html.en new file mode 100644 index 00000000..3551a83e --- /dev/null +++ b/docs/manual/vhosts/fd-limits.html.en @@ -0,0 +1,128 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>File Descriptor Limits - Apache HTTP Server</title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page" class="no-sidebar"><div id="page-header"> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p> +<p class="apache">Apache HTTP Server Version 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">Virtual Hosts</a></div><div id="page-content"><div id="preamble"><h1>File Descriptor Limits</h1> +<div class="toplang"> +<p><span>Available Languages: </span><a href="../en/vhosts/fd-limits.html" title="English"> en </a> | +<a href="../fr/vhosts/fd-limits.html" hreflang="fr" rel="alternate" title="Franais"> fr </a> | +<a href="../ja/vhosts/fd-limits.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/fd-limits.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div> + + + <p>When using a large number of Virtual Hosts, Apache may run + out of available file descriptors (sometimes called <cite>file + handles</cite>) if each Virtual Host specifies different log + files. The total number of file descriptors used by Apache is + one for each distinct error log file, one for every other log + file directive, plus 10-20 for internal use. Unix operating + systems limit the number of file descriptors that may be used + by a process; the limit is typically 64, and may usually be + increased up to a large hard-limit.</p> + + <p>Although Apache attempts to increase the limit as required, + this may not work if:</p> + + <ol> + <li>Your system does not provide the <code>setrlimit()</code> + system call.</li> + + <li>The <code>setrlimit(RLIMIT_NOFILE)</code> call does not + function on your system (such as Solaris 2.3)</li> + + <li>The number of file descriptors required exceeds the hard + limit.</li> + + <li>Your system imposes other limits on file descriptors, + such as a limit on stdio streams only using file descriptors + below 256. (Solaris 2)</li> + </ol> + + <p>In the event of problems you can:</p> + + <ul> + <li>Reduce the number of log files; don't specify log files + in the <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> + sections, but only log to the main log files. (See <a href="#splitlogs">Splitting up your log files</a>, below, for more + information on doing this.)</li> + + <li> + If you system falls into 1 or 2 (above), then increase the + file descriptor limit before starting Apache, using a + script like + + <div class="example"><p><code> + <code>#!/bin/sh<br /> + ulimit -S -n 100<br /> + exec httpd</code> + </code></p></div> + </li> + </ul> + +</div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="splitlogs" id="splitlogs">Splitting up your log files</a></h2> + +<p>If you want to log multiple virtual hosts to the same log file, you +may want to split up the log files afterwards in order to run +statistical analysis of the various virtual hosts. This can be +accomplished in the following manner.</p> + +<p>First, you will need to add the virtual host information to the log +entries. This can be done using the <code class="directive"><a href="../mod/mod_log_config.html# logformat"> +LogFormat</a></code> +directive, and the <code>%v</code> variable. Add this to the beginning +of your log format string:</p> + +<div class="example"><p><code> +LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost<br /> +CustomLog logs/multiple_vhost_log vhost +</code></p></div> + +<p>This will create a log file in the common log format, but with the +canonical virtual host (whatever appears in the +<code class="directive"><a href="../mod/core.html#servername">ServerName</a></code> directive) prepended to +each line. (See <code class="directive"><a href="../mod/mod_log_config.html#custom log formats">Custom Log Formats</a></code> for +more about customizing your log files.)</p> + +<p>When you wish to split your log file into its component parts (one +file per virtual host) you can use the program <code><a href="../programs/other.html">split-logfile</a></code> to accomplish +this. You'll find this program in the <code>support</code> directory +of the Apache distribution.</p> + +<p>Run this program with the command:</p> + +<div class="example"><p><code> +split-logfile < /logs/multiple_vhost_log +</code></p></div> + +<p>This program, when run with the name of your vhost log file, will +generate one file for each virtual host that appears in your log file. +Each file will be called <code>hostname.log</code>.</p> + +</div></div> +<div class="bottomlang"> +<p><span>Available Languages: </span><a href="../en/vhosts/fd-limits.html" title="English"> en </a> | +<a href="../fr/vhosts/fd-limits.html" hreflang="fr" rel="alternate" title="Franais"> fr </a> | +<a href="../ja/vhosts/fd-limits.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/fd-limits.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div> +</body></html>
\ No newline at end of file diff --git a/docs/manual/vhosts/fd-limits.html.fr b/docs/manual/vhosts/fd-limits.html.fr new file mode 100644 index 00000000..20364164 --- /dev/null +++ b/docs/manual/vhosts/fd-limits.html.fr @@ -0,0 +1,141 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>Limites des descripteurs de fichiers - Serveur Apache HTTP</title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page" class="no-sidebar"><div id="page-header"> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossaire</a> | <a href="../sitemap.html">Plan du site</a></p> +<p class="apache">Serveur Apache HTTP Version 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">Serveur HTTP</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">Serveurs Virtuels</a></div><div id="page-content"><div id="preamble"><h1>Limites des descripteurs de fichiers</h1> +<div class="toplang"> +<p><span>Langues Disponibles: </span><a href="../en/vhosts/fd-limits.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/fd-limits.html" title="Franais"> fr </a> | +<a href="../ja/vhosts/fd-limits.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/fd-limits.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div> + + + <p>Quand de nombreux serveurs virtuels sont crs, Apache peut + dpasser les limites en descripteurs de fichiers ('file descriptors', + galement appels <cite>gestionnaires de fichiers</cite>) si chacun + des serveurs virtuels utilise ses propres fichiers journaux. Le + nombre total de descripteurs de fichiers utiliss par Apache est + d'un par fichier journal, un pour chacune des autres directives + de fichiers journaux, plus un nombre constant compris entre 10 et 20 + pour son fonctionnement interne. Les systmes d'exploitation Unix + limitent le nombre de descripteurs de fichiers utilisables par + processus ; une valeur courante pour cette limite est de 64, et + cette valeur peut le plus souvent tre augmente.</p> + + <p>Apache tente d'accrotre cette valeur limite si ncessaire, mais + sans y parvenir dans les cas suivants :</p> + + <ol> + <li>Le systme d'exploitation ne permet pas l'utilisation d'appels + systmes <code>setrlimit()</code>.</li> + + <li>L'appel <code>setrlimit(RLIMIT_NOFILE)</code> ne fonctionne pas + sur votre systme d'exploitation (c'est le cas sous Solaris 2.3).</li> + + <li>Le nombre de descripteurs de fichiers ncessaires Apache + dpasse la limite physique du matriel.</li> + + <li>Le systme impose d'autres limites sur l'utilisation des + descripteurs de fichiers, comme par exemple une limite sur les + flux stdio, utilisables uniquement sur les descripteurs de + fichiers infrieurs 256. (sous Solaris 2).</li> + </ol> + + <p>En cas de problme, Vous pouvez :</p> + + <ul> + <li>Rduire le nombre de fichiers journaux, en ne spcifiant + aucun fichier journal dans les sections + <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code>, + en donc en envoyant les informations aux fichiers journaux du + serveur principal (Voir <a href="#splitlogs">clatement des + fichiers journaux</a> ci-dessous pour plus d'informations sur + cette possibilit).</li> + + <li> + Dans les cas 1 ou 2 (voqus ci-dessus), augmentez la limite sur + les descripteurs de fichiers avant le dmarrage d'Apache, au + moyen d'un script comme + + <div class="example"><p><code> + <code>#!/bin/sh<br /> + ulimit -S -n 100<br /> + exec httpd</code> + </code></p></div> + </li> + </ul> + + + +</div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="splitlogs" id="splitlogs">clatement des fichiers journaux</a></h2> + +<p>Lorsque vous choisissez d'enregistrer les informations manant de +plusieurs serveurs virtuels dans un mme fichier journal, vous voudrez +ensuite pouvoir scinder ces informations des fins de statistiques, par +exemple, sur les diffrents serveurs virtuels. Il est possible de procder +de la manire suivante :</p> + +<p>Tout d'abord, vous devez ajouter le nom du serveur virtuel chaque +entre du journal. Ceci se paramtre au moyen de la directive +<code class="directive"><a href="../mod/mod_log_config.html# logformat"> LogFormat</a></code> et de la +variable <code>%v</code>. Ajoutez cette variable au dbut de la chane +de dfinition du format de journalisations :</p> + +<div class="example"><p><code> +LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost<br /> +CustomLog logs/multiple_vhost_log vhost +</code></p></div> + +<p>Cette configuration va provoquer la cration d'un fichier de +journalisation au format standard (CLF : 'Common Log Format'), mais dont +chaque ligne dbutera par le nom canonique du serveur virtuel (spcifi +par la directive <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code>). +(Voir <code class="directive"><a href="../mod/mod_log_config.html#formats de journalisation personnaliss">Formats de journalisation +personnaliss</a></code> pour d'autres informations sur la +personnalisation des fichiers journaux.)</p> + +<p>Au moment de sparer les informations du fichier journal en un fichier +par serveur virtuel, le programme <code> +<a href="../programs/other.html">split-logfile</a></code> peut tre +utilis. Ce programme peut tre trouv dans le rpertoire +<code>support</code> de la distribution d'Apache.</p> + +<p>Excutez ce programme au moyen de la commande :</p> + +<div class="example"><p><code> +split-logfile < /logs/multiple_vhost_log +</code></p></div> + +<p>Une fois excut avec le nom du fichier contenant tous les journaux, +ce programme va gnrer un fichier pour chacun des serveurs virtuels +qui apparat dans le fichier d'entre. Chaque fichier en sortie est +nomm <code>nomduserveur.log</code>.</p> + +</div></div> +<div class="bottomlang"> +<p><span>Langues Disponibles: </span><a href="../en/vhosts/fd-limits.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/fd-limits.html" title="Franais"> fr </a> | +<a href="../ja/vhosts/fd-limits.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/fd-limits.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Authoris sous <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossaire</a> | <a href="../sitemap.html">Plan du site</a></p></div> +</body></html>
\ No newline at end of file diff --git a/docs/manual/vhosts/fd-limits.html.ja.euc-jp b/docs/manual/vhosts/fd-limits.html.ja.euc-jp new file mode 100644 index 00000000..5a19a47a --- /dev/null +++ b/docs/manual/vhosts/fd-limits.html.ja.euc-jp @@ -0,0 +1,125 @@ +<?xml version="1.0" encoding="EUC-JP"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>ե뵭һҤθ³ - Apache HTTP </title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page" class="no-sidebar"><div id="page-header"> +<p class="menu"><a href="../mod/">⥸塼</a> | <a href="../mod/directives.html">ǥ쥯ƥ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Ѹ</a> | <a href="../sitemap.html">ȥޥå</a></p> +<p class="apache">Apache HTTP С 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP </a> > <a href="http://httpd.apache.org/docs/">ɥơ</a> > <a href="../">С 2.2</a> > <a href="./">Сۥ</a></div><div id="page-content"><div id="preamble"><h1>ե뵭һҤθ³</h1> +<div class="toplang"> +<p><span>Available Languages: </span><a href="../en/vhosts/fd-limits.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/fd-limits.html" hreflang="fr" rel="alternate" title="Franais"> fr </a> | +<a href="../ja/vhosts/fd-limits.html" title="Japanese"> ja </a> | +<a href="../ko/vhosts/fd-limits.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div> + + + <p>ΥСۥȤѤ硢⤷ + ƥСۥȤȤ˰ۤʤե뤬ꤷƤȡ + Apache ե뵭һ (<cite>եϥɥ</cite>ȤƤФޤ) + ȤڤäƤޤȤޤApache Ѥե + һҤοϡƥ顼եˤĤ 1 ġ¾Υե + ǥ쥯ƥ֤ˤĤ 1 ġǻѤ 10 20 + ιפˤʤޤUnix ڥ졼ƥƥǤϥץȤ + Ѳǽʥե뵭һҤο¤ƤޤƤξ 64 ǡ + ̤礭ͤΥϡɥߥåȤޤ䤹ȤǤޤ</p> + + <p>Apache ɬפ˱ƾ¤礷褦Ȼߤޤ + ʲΤ褦ʾˤϤޤʤ⤷ޤ</p> + + <ol> + <li>ѤƤ륷ƥ <code>setrlimit()</code> + ƥॳ뤬Ƥʤ</li> + + <li>ƥ <code>setrlimit</code>(RLIMIT_NOFILE) ưʤ + (Ȥ Solaris 2.3 Τ褦)</li> + + <li>ᤵե뵭һҤο + ϡɥߥåȤĶƤޤ</li> + + <li>ƥ˥ե뵭һҤ˴ؤ̤¤¸ߤƤޤäƤ롣 + ȤСstdio ȥǤϥե뵭һҤ 256 ʾȤʤ + (Solaris 2)ʤɡ</li> + </ol> + + <p>꤬ȯ˼нˡϼΤȤ:</p> + + <ul> + <li>եο餹<code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> + ǥեꤻᥤΥեˤΤߵϿ롣 + (˴ؤܤϰʲ<a href="#splitlogs">եʬ</a>ɤǤ)</li> + + <li> + ⤷Ҥ 1 ޤ 2 ξǤС + Apache ư˥ե뵭һҤ䤷ޤ + ȤмΤ褦ʥץȤȤޤ + + <div class="example"><p><code> + <code>#!/bin/sh<br /> + ulimit -S -n 100<br /> + exec httpd</code> + </code></p></div> + </li> + </ul> +</div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="splitlogs" id="splitlogs">եʬ</a></h2> + +<p>ʣΥСۥȤΥƱե˼褦ȤƤȤˤϡ +ƥСۥȤˤĤŪʲϤ¹Ԥ뤿˸ǥե +ʬ䤷ʤ뤫⤷ޤϰʲΤ褦ˤƼ¸Ǥޤ</p> + +<p>ޤСۥȤξΥȥɲäɬפޤ + <code class="directive"><a href="../mod/mod_log_config.html#logformat">LogFormat</a></code> +ǥ쥯ƥ֤ <code>%v</code> ѿȤȤǤǤޤ +ΥեޥåʸƬɲäޤ:</p> + +<div class="example"><p><code> +LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost<br /> +CustomLog logs/multiple_vhost_log vhost +</code></p></div> + +<p> common log format Υޤ줾ιԤƬ +줿СۥȤ̾ +(<code class="directive"><a href="../mod/core.html#servername">ServerName</a></code> +ǥ쥯ƥ֤˽Ƥ) ղäޤ +(եΥޥξܺ٤ˤĤƤ <a href="../mod/mod_log_config.html#formats">Custom Log Formats</a> +ɤǤ)</p> + +<p>եʬ (Сۥ 1 ե) ʬȤϡ +<code><a href="../programs/other.html">split-logfile</a></code> +ȤäƹԤʤȤǤޤץ Apache ۤ +<code>support</code> ǥ쥯ȥˤޤ</p> + +<p>ʲΤ褦ʥޥɤǤΥץ¹Ԥޤ:</p> + +<div class="example"><p><code> +split-logfile < /logs/multiple_vhost_log +</code></p></div> + +<p>ΥץϥСۥȤΥե̾ȤȤ˼¹Ԥ졢 +ե˸뤽줾ΥСۥ˰ĤΥեޤ +줾Υե <code>ۥ̾.log</code> Ȥ̾ˤʤޤ</p> + +</div></div> +<div class="bottomlang"> +<p><span>Available Languages: </span><a href="../en/vhosts/fd-limits.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/fd-limits.html" hreflang="fr" rel="alternate" title="Franais"> fr </a> | +<a href="../ja/vhosts/fd-limits.html" title="Japanese"> ja </a> | +<a href="../ko/vhosts/fd-limits.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/">⥸塼</a> | <a href="../mod/directives.html">ǥ쥯ƥ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Ѹ</a> | <a href="../sitemap.html">ȥޥå</a></p></div> +</body></html>
\ No newline at end of file diff --git a/docs/manual/vhosts/fd-limits.html.ko.euc-kr b/docs/manual/vhosts/fd-limits.html.ko.euc-kr new file mode 100644 index 00000000..800359fb --- /dev/null +++ b/docs/manual/vhosts/fd-limits.html.ko.euc-kr @@ -0,0 +1,122 @@ +<?xml version="1.0" encoding="EUC-KR"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>ϱ(file descriptor) Ѱ - Apache HTTP Server</title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page" class="no-sidebar"><div id="page-header"> +<p class="menu"><a href="../mod/"></a> | <a href="../mod/directives.html">þ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html"></a> | <a href="../sitemap.html">Ʈ</a></p> +<p class="apache">Apache HTTP Server Version 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">ȣƮ</a></div><div id="page-content"><div id="preamble"><h1>ϱ(file descriptor) Ѱ</h1> +<div class="toplang"> +<p><span> : </span><a href="../en/vhosts/fd-limits.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/fd-limits.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="../ja/vhosts/fd-limits.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/fd-limits.html" title="Korean"> ko </a></p> +</div> + + + <p>ȣƮ ϰ ȣƮ ٸ + α ϸ, ġ 밡 ϱ(file + descriptor, <cite>ڵ(file handle)</cite>̶ + θ) ִ. ġ ϴ ϱ + αϴ Ѱ, ٸ α þ + Ѱ, ߰ ο뵵 10-20 . н ü + μ ִ ϱ Ѵ. Ѱ + 64, ̺ ū hard-limit ø ִ.</p> + + <p>ġ Ѱ踦 ʿѸŭ ø , ϴ + 찡 ִ:</p> + + <ol> + <li>ý <code>setrlimit()</code> ýȣ + ʴ´.</li> + + <li>(Solaris 2.3 ) ýۿ + <code>setrlimit(RLIMIT_NOFILE)</code> Լ + ʴ´.</li> + + <li>ʿ ϱ hard limit .</li> + + <li>(Solaris 2) ý stdio Ʈ 256 + ϱڸ ϵ ϴ ϱڿ + Ѵ.</li> + </ol> + + <p> ذå:</p> + + <ul> + <li>α δ. <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> ǿ α + ʰ α Ѵ. ( ڼ + Ʒ <a href="#splitlogs">α </a> ϶.)</li> + + <li> + ϴ ý () 1° 2° 쿡 شѴٸ, + ũƮ ġ ϱ ϱ + Ѱ踦 ø. + + <div class="example"><p><code> + <code>#!/bin/sh<br /> + ulimit -S -n 100<br /> + exec httpd</code> + </code></p></div> + </li> + </ul> + +</div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="splitlogs" id="splitlogs">α </a></h2> + +<p> ȣƮ α Ѵٸ ߿ +ȣƮ м α ̴. + ۾ ִ.</p> + +<p> α ȣƮ ߰Ѵ. ̸ +<code class="directive"><a href="../mod/mod_log_config.html#logformat">LogFormat</a></code> +þ <code>%v</code> Ѵ. α +Ĺڿ տ ߰Ѵ:</p> + +<div class="example"><p><code> +LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost<br /> +CustomLog logs/multiple_vhost_log vhost +</code></p></div> + +<p> common α տ (<code class="directive"><a href="../mod/core.html#servername">ServerName</a></code> þ ) +ȣƮ Ͽ α Ѵ. (α +ǿ <code class="directive"><a href="../mod/mod_log_config.html# α"> α</a></code> +϶.)</p> + +<p>α (ȣƮ Ͼ) ʹٸ <code><a href="../programs/other.html">split-logfile</a></code> α +Ѵ. α ġ <code>support</code> +丮 ִ.</p> + +<p> α Ѵ:</p> + +<div class="example"><p><code> +split-logfile < /logs/multiple_vhost_log +</code></p></div> + +<p>ȣƮ α α ϸ αϿ + ȣƮ ϳ . ϸ +<code>hostname.log</code>̴.</p> + +</div></div> +<div class="bottomlang"> +<p><span> : </span><a href="../en/vhosts/fd-limits.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/fd-limits.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="../ja/vhosts/fd-limits.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/fd-limits.html" title="Korean"> ko </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/"></a> | <a href="../mod/directives.html">þ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html"></a> | <a href="../sitemap.html">Ʈ</a></p></div> +</body></html>
\ No newline at end of file diff --git a/docs/manual/vhosts/index.html b/docs/manual/vhosts/index.html new file mode 100644 index 00000000..76ef9af7 --- /dev/null +++ b/docs/manual/vhosts/index.html @@ -0,0 +1,23 @@ +URI: index.html.de +Content-Language: de +Content-type: text/html; charset=ISO-8859-1 + +URI: index.html.en +Content-Language: en +Content-type: text/html; charset=ISO-8859-1 + +URI: index.html.fr +Content-Language: fr +Content-type: text/html; charset=ISO-8859-1 + +URI: index.html.ja.euc-jp +Content-Language: ja +Content-type: text/html; charset=EUC-JP + +URI: index.html.ko.euc-kr +Content-Language: ko +Content-type: text/html; charset=EUC-KR + +URI: index.html.ru.koi8-r +Content-Language: ru +Content-type: text/html; charset=KOI8-R diff --git a/docs/manual/vhosts/index.html.de b/docs/manual/vhosts/index.html.de new file mode 100644 index 00000000..7c9da916 --- /dev/null +++ b/docs/manual/vhosts/index.html.de @@ -0,0 +1,110 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>Apache-Dokumentation zu virtuellen Hosts - Apache HTTP Server</title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/">Module</a> | <a href="../mod/directives.html">Direktiven</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossar</a> | <a href="../sitemap.html">Seitenindex</a></p> +<p class="apache">Apache HTTP Server Version 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="../"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP-Server</a> > <a href="http://httpd.apache.org/docs/">Dokumentation</a> > <a href="../">Version 2.2</a></div><div id="page-content"><div id="preamble"><h1>Apache-Dokumentation zu virtuellen Hosts</h1> +<div class="toplang"> +<p><span>Verfgbare Sprachen: </span><a href="../de/vhosts/" title="Deutsch"> de </a> | +<a href="../en/vhosts/" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/" hreflang="fr" rel="alternate" title="Franais"> fr </a> | +<a href="../ja/vhosts/" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="../ru/vhosts/" hreflang="ru" rel="alternate" title="Russian"> ru </a></p> +</div> + + <p>Der Begriff <cite>virtueller Host</cite> <span class="transnote">(<em>Anm.d..:</em> engl. 'virtual + host')</span> bezieht sich auf die Praxis, mehr als ein Webangebot + (z.B. <code>www.company1.com</code> und <code>www.company2.com</code>) + auf einer einzigen Maschine zu betreiben. Virtuelle Hosts knnen + "<a href="ip-based.html">IP-basiert</a>" sein, was bedeutet, dass jedes + Webangebot eine andere IP besitzt, oder "<a href="name-based.html">Namens-basiert</a>", was bedeutet, dass + unter jeder IP-Adresse mehrere Namen laufen. Die Tatsache, dass sie + auf dem gleichen physischen Server laufen, ist fr den Endbenutzer + nicht offensichtlich.</p> + + <p>Der Apache war einer der ersten Server, der IP-basierte + virtuelle Hosts von Haus aus direkt untersttzt hat. Seit Version 1.1 + untersttzt der Apache sowohl IP-basierte als auch namensbasierte + virtuelle Hosts (vhosts). Letzteres wird zuweilen auch + <em>Host-basiert</em> oder <em>non-IP-Virtual-Host</em> genannt.</p> + + <p>Nachfolgend finden Sie eine Liste von Dokumenten, die alle Details + der Untersttzung von virtuellen Hosts ab Apache Version 1.3 + beschreiben.</p> + +</div> +<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#support">Untersttzung virtueller Hosts</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#directives">Konfigurationsdirektiven</a></li> +</ul><h3>Siehe auch</h3><ul class="seealso"><li><code class="module"><a href="../mod/mod_vhost_alias.html">mod_vhost_alias</a></code></li><li><a href="name-based.html">Namensbasierte virtuelle Hosts</a></li><li><a href="ip-based.html">IP-basierte virtuelle Hosts</a></li><li><a href="examples.html">Beispiele fr virtuelle + Hosts</a></li><li><a href="fd-limits.html">Datei-Deskriptor-Begrenzungen</a></li><li><a href="mass.html">Massen-Virtual-Hosting</a></li><li><a href="details.html">Zuweisung virtueller Hosts</a></li></ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="support" id="support">Untersttzung virtueller Hosts</a></h2> + + <ul> + <li><a href="name-based.html">Namensbasierte virtuelle Hosts</a> (Mehr + als ein Webangebot pro IP-Adresse)</li> + <li><a href="ip-based.html">IP-basierte virtuelle Hosts</a> (Eine + IP-Adresse fr jedes Webangebot)</li> + <li><a href="examples.html">Beispiele fr virtuelles Hosts in + typischen Installationen</a></li> + <li><a href="fd-limits.html">Datei-Deskriptor-Begrenzungen</a> (oder + <em>Zu viele Protokolldateien</em>)</li> + <li><a href="mass.html">Dynamisch konfiguriertes + Massen-Virtual-Hosting</a></li> + <li><a href="details.html">Tiefergehende Errterung der Zuweisung + virtueller Hosts</a></li> + </ul> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="directives" id="directives">Konfigurationsdirektiven</a></h2> + + <ul> + <li><code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code></li> + <li><code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code></li> + <li><code class="directive"><a href="../mod/core.html#servername">ServerName</a></code></li> + <li><code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code></li> + <li><code class="directive"><a href="../mod/core.html#serverpath">ServerPath</a></code></li> + </ul> + + <p>Bei der Suche von Fehlern in Ihrer Virtual-Host-Konfiguration ist + die Apache-Befehlszeilenoption <code>-S</code> mglicherweise + hilfreich. Geben Sie dazu den folgenden Befehl ein:</p> + + <div class="example"><p><code> + /usr/local/apache2/bin/httpd -S + </code></p></div> + + <p>Diese Anweisung gibt eine Beschreibung aus, wie der Apache die + Konfigurationsdatei analysiert hat. Eine sorgfltige + berprfung der IP-Adressen und Servernamen kann helfen, + Konfigurationsfehler aufzudecken. (Lesen Sie die Dokumentation zum + <code class="program"><a href="../programs/httpd.html">httpd</a></code>-Programm fr weitere + Befehlszeilenoptionen.)</p> +</div></div> +<div class="bottomlang"> +<p><span>Verfgbare Sprachen: </span><a href="../de/vhosts/" title="Deutsch"> de </a> | +<a href="../en/vhosts/" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/" hreflang="fr" rel="alternate" title="Franais"> fr </a> | +<a href="../ja/vhosts/" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="../ru/vhosts/" hreflang="ru" rel="alternate" title="Russian"> ru </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Lizenziert unter der <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/">Module</a> | <a href="../mod/directives.html">Direktiven</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossar</a> | <a href="../sitemap.html">Seitenindex</a></p></div> +</body></html>
\ No newline at end of file diff --git a/docs/manual/vhosts/index.html.en b/docs/manual/vhosts/index.html.en new file mode 100644 index 00000000..40c460e5 --- /dev/null +++ b/docs/manual/vhosts/index.html.en @@ -0,0 +1,110 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>Apache Virtual Host documentation - Apache HTTP Server</title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p> +<p class="apache">Apache HTTP Server Version 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="../"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a></div><div id="page-content"><div id="preamble"><h1>Apache Virtual Host documentation</h1> +<div class="toplang"> +<p><span>Available Languages: </span><a href="../de/vhosts/" hreflang="de" rel="alternate" title="Deutsch"> de </a> | +<a href="../en/vhosts/" title="English"> en </a> | +<a href="../fr/vhosts/" hreflang="fr" rel="alternate" title="Franais"> fr </a> | +<a href="../ja/vhosts/" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="../ru/vhosts/" hreflang="ru" rel="alternate" title="Russian"> ru </a></p> +</div> + + + <p>The term <cite>Virtual Host</cite> refers to the practice of + running more than one web site (such as + <code>www.company1.com</code> and <code>www.company2.com</code>) + on a single machine. Virtual hosts can be "<a href="ip-based.html">IP-based</a>", meaning that you have a + different IP address for every web site, or "<a href="name-based.html">name-based</a>", meaning that you have + multiple names running on each IP address. The fact that they + are running on the same physical server is not apparent to the + end user.</p> + + <p>Apache was one of the first servers to support IP-based + virtual hosts right out of the box. Versions 1.1 and later of + Apache support both IP-based and name-based virtual hosts + (vhosts). The latter variant of virtual hosts is sometimes also + called <em>host-based</em> or <em>non-IP virtual hosts</em>.</p> + + <p>Below is a list of documentation pages which explain all + details of virtual host support in Apache version 1.3 and + later.</p> + +</div> +<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#support">Virtual Host Support</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#directives">Configuration directives</a></li> +</ul><h3>See also</h3><ul class="seealso"><li><code class="module"><a href="../mod/mod_vhost_alias.html">mod_vhost_alias</a></code></li><li><a href="name-based.html">Name-based virtual +hosts</a></li><li><a href="ip-based.html">IP-based virtual hosts</a></li><li><a href="examples.html">Virtual host examples</a></li><li><a href="fd-limits.html">File descriptor limits</a></li><li><a href="mass.html">Mass virtual hosting</a></li><li><a href="details.html">Details of host matching</a></li></ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="support" id="support">Virtual Host Support</a></h2> + + <ul> + <li><a href="name-based.html">Name-based Virtual Hosts</a> (More + than one web site per IP address)</li> + <li><a href="ip-based.html">IP-based Virtual Hosts</a> (An IP + address for each web site)</li> + <li><a href="examples.html">Virtual Host examples for common + setups</a></li> + <li><a href="fd-limits.html">File Descriptor Limits</a> (or, + <em>Too many log files</em>)</li> + <li><a href="mass.html">Dynamically Configured Mass Virtual + Hosting</a></li> + <li><a href="details.html">In-Depth Discussion of Virtual Host + Matching</a></li> + </ul> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="directives" id="directives">Configuration directives</a></h2> + + <ul> + <li><code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code></li> + <li><code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code></li> + <li><code class="directive"><a href="../mod/core.html#servername">ServerName</a></code></li> + <li><code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code></li> + <li><code class="directive"><a href="../mod/core.html#serverpath">ServerPath</a></code></li> + </ul> + + <p>If you are trying to debug your virtual host configuration, you + may find the Apache <code>-S</code> command line switch + useful. That is, type the following command:</p> + + <div class="example"><p><code> + /usr/local/apache2/bin/httpd -S + </code></p></div> + + <p>This command will dump out a description of how Apache parsed + the configuration file. Careful examination of the IP addresses and + server names may help uncover configuration mistakes. (See + the docs for the <code class="program"><a href="../programs/httpd.html">httpd</a></code> program for + other command line options)</p> + +</div></div> +<div class="bottomlang"> +<p><span>Available Languages: </span><a href="../de/vhosts/" hreflang="de" rel="alternate" title="Deutsch"> de </a> | +<a href="../en/vhosts/" title="English"> en </a> | +<a href="../fr/vhosts/" hreflang="fr" rel="alternate" title="Franais"> fr </a> | +<a href="../ja/vhosts/" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="../ru/vhosts/" hreflang="ru" rel="alternate" title="Russian"> ru </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div> +</body></html>
\ No newline at end of file diff --git a/docs/manual/vhosts/index.html.fr b/docs/manual/vhosts/index.html.fr new file mode 100644 index 00000000..96edb164 --- /dev/null +++ b/docs/manual/vhosts/index.html.fr @@ -0,0 +1,111 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>Documentation sur les serveurs virtuels Apache - Serveur Apache HTTP</title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossaire</a> | <a href="../sitemap.html">Plan du site</a></p> +<p class="apache">Serveur Apache HTTP Version 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="../"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">Serveur HTTP</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a></div><div id="page-content"><div id="preamble"><h1>Documentation sur les serveurs virtuels Apache</h1> +<div class="toplang"> +<p><span>Langues Disponibles: </span><a href="../de/vhosts/" hreflang="de" rel="alternate" title="Deutsch"> de </a> | +<a href="../en/vhosts/" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/" title="Franais"> fr </a> | +<a href="../ja/vhosts/" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="../ru/vhosts/" hreflang="ru" rel="alternate" title="Russian"> ru </a></p> +</div> + + + <p>Le principe des <cite>Serveurs Virtuels</cite> consiste + faire fonctionner un ou plusieurs serveurs Web (comme + <code>www.company1.com</code> et <code>www.company2.com</code>) + sur une mme machine. Les serveurs virtuels peuvent tre soit + "<a href="ip-based.html">par-IP</a>" o une adresse IP est + attribue pour chaque serveur Web, soit "<a href="name-based.html">par-nom</a>" o plusieurs noms de domaine se ctoient sur + des mmes adresses IP. L'utilisateur final ne peroit pas + qu'en fait il s'agit d'un mme serveur physique.</p> + + <p>Apache a t le prcurseur des serveurs proposant cette + mthode de serveurs virtuels bass sur les adresses IP. Ses + versions 1.1 et suivantes ont toujours proposes ces deux + mthodes de serveurs virtuels par-IP et par-nom. Cette + deuxime mthode est parfois galement appele <em>host-based</em> + ou <em>serveur virtuel non-IP</em>.</p> + + <p>Vous trouverez ci-dessous une liste documentaire qui vous + expliquera en dtails le fonctionnement des serveurs virtuels + sous Apache 1.3 et ses versions suivantes.</p> + +</div> +<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#support">Support des serveurs virtuels</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#directives">Directives de configuration</a></li> +</ul><h3>Voir aussi</h3><ul class="seealso"><li><code class="module"><a href="../mod/mod_vhost_alias.html">mod_vhost_alias</a></code></li><li><a href="name-based.html">Serveurs virtuels par-nom</a></li><li><a href="ip-based.html">Serveurs virtuels par-IP</a></li><li><a href="examples.html">Exemples de serveurs virtuels</a></li><li><a href="fd-limits.html">Limites des descripteurs de fichiers</a></li><li><a href="mass.html">Hbergement virtuel en masse</a></li><li><a href="details.html">Dtails sur les critres de choix du serveur</a></li></ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="support" id="support">Support des serveurs virtuels</a></h2> + + <ul> + <li><a href="name-based.html">Serveurs Virtuels par-Nom</a> + (Un ou plusieurs sites Web par adresse IP)</li> + <li><a href="ip-based.html">Serveurs Virtuels par-IP</a> + (Une adresse IP pour chaque site Web)</li> + <li><a href="examples.html">Exemples de configurations classiques + de Serveurs Virtuels </a></li> + <li><a href="fd-limits.html">Limites des descripteurs de fichiers</a> + (ou, <em>trop de fichiers journaux</em>)</li> + <li><a href="mass.html">Configuration dynamique en masse de + Serveurs Virtuels</a></li> + <li><a href="details.html">Explication approfondie des critres + de slection d'un Serveur Virtuel</a></li> + </ul> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="directives" id="directives">Directives de configuration</a></h2> + + <ul> + <li><code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code></li> + <li><code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code></li> + <li><code class="directive"><a href="../mod/core.html#servername">ServerName</a></code></li> + <li><code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code></li> + <li><code class="directive"><a href="../mod/core.html#serverpath">ServerPath</a></code></li> + </ul> + + <p>Pour vrifier et analyser la configuration de vos serveurs + virtuels, vous pouvez utiliser l'argument <code>-S</code> sur + la ligne de commande lanant le programme Apache comme ceci :</p> + + <div class="example"><p><code> + /usr/local/apache2/bin/httpd -S + </code></p></div> + + <p>Cette commande affichera dans le dtail comment Apache a + trait son fichier de configuration. Les erreurs de configuration + peuvent tre corriges par l'examen attentif des adresses IP et + des noms de serveurs. (Consultez la documentation du programme + <code class="program"><a href="../programs/httpd.html">httpd</a></code> pour les autres arguments de la ligne de + commande)</p> + +</div></div> +<div class="bottomlang"> +<p><span>Langues Disponibles: </span><a href="../de/vhosts/" hreflang="de" rel="alternate" title="Deutsch"> de </a> | +<a href="../en/vhosts/" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/" title="Franais"> fr </a> | +<a href="../ja/vhosts/" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="../ru/vhosts/" hreflang="ru" rel="alternate" title="Russian"> ru </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Authoris sous <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossaire</a> | <a href="../sitemap.html">Plan du site</a></p></div> +</body></html>
\ No newline at end of file diff --git a/docs/manual/vhosts/index.html.ja.euc-jp b/docs/manual/vhosts/index.html.ja.euc-jp new file mode 100644 index 00000000..c49dfd92 --- /dev/null +++ b/docs/manual/vhosts/index.html.ja.euc-jp @@ -0,0 +1,105 @@ +<?xml version="1.0" encoding="EUC-JP"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>Apache Сۥ - Apache HTTP </title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/">⥸塼</a> | <a href="../mod/directives.html">ǥ쥯ƥ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Ѹ</a> | <a href="../sitemap.html">ȥޥå</a></p> +<p class="apache">Apache HTTP С 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="../"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP </a> > <a href="http://httpd.apache.org/docs/">ɥơ</a> > <a href="../">С 2.2</a></div><div id="page-content"><div id="preamble"><h1>Apache Сۥ</h1> +<div class="toplang"> +<p><span>Available Languages: </span><a href="../de/vhosts/" hreflang="de" rel="alternate" title="Deutsch"> de </a> | +<a href="../en/vhosts/" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/" hreflang="fr" rel="alternate" title="Franais"> fr </a> | +<a href="../ja/vhosts/" title="Japanese"> ja </a> | +<a href="../ko/vhosts/" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="../ru/vhosts/" hreflang="ru" rel="alternate" title="Russian"> ru </a></p> +</div> + + + <p><cite>Сۥ</cite>ȤѸϡ1 Υޥ + (<code>www.company1.com</code> and <code>www.company2.com</code> Τ褦) + İʾΥ֥ȤˡΤȤؤޤ + СۥȤˤϡƥ֥Ȥ˰㤦 IP ɥ쥹 + <a href="ip-based.html">IP ١</a>פȡ줾 IP ɥ쥹 + ʣ̾<a href="name-based.html">̾١</a>פȤޤ + ʣΥȤʪŪƱФǰƤ롢ȤȤϥɥ桼ˤ + 餫ǤϤޤ</p> + + <p>Apache ϡä˼ʤ֤ IP ١ΥСۥ + ݡȤǽΥФΰĤǤС 1.1 ʹߤ Apache + ǤϡIP ١ȥ͡١ΥСۥȤξݡ + Ƥޤ͡١ΥСۥȤϡ<em>ۥȥ١</em>뤤 + <em> IP ١</em>ΥСۥȤȸƤФ뤳Ȥ⤢ޤ</p> + + <p>ʲΥڡǤϡApache С 1.3 + ʹߤǤΥСۥȤΥݡȤˤĤƤξܺ٤ޤ</p> + +</div> +<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#support">СۥȤΥݡ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#directives">ǥ쥯ƥ</a></li> +</ul><h3></h3><ul class="seealso"><li><code class="module"><a href="../mod/mod_vhost_alias.html">mod_vhost_alias</a></code></li><li><a href="name-based.html">͡١ΥСۥ</a></li><li><a href="ip-based.html">IP ١ΥСۥ</a></li><li><a href="examples.html">СۥȤΰŪ</a></li><li><a href="fd-limits.html">ե뵭һҤθ³</a></li><li><a href="mass.html">̤ΥСۥȤ</a></li><li><a href="details.html">СۥȤΥޥåˤĤƤξܺ</a></li></ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="support" id="support">СۥȤΥݡ</a></h2> + + <ul> + <li><a href="name-based.html">͡١ΥСۥ</a> + (Ĥ IP ɥ쥹ʣΥ֥)</li> + <li><a href="ip-based.html">IP ١ΥСۥ</a> + (ƥ֥Ȥ IP ɥ쥹)</li> + <li><a href="examples.html">СۥȤΰŪ</a></li> + <li><a href="fd-limits.html">ե뵭һҤθ³</a> + (ޤϡ<em>¿ե</em>)</li> + <li><a href="mass.html">̤ΥСۥȤ</a></li> + <li><a href="details.html">СۥȤΥޥåˤĤƤξܺ</a></li> + </ul> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="directives" id="directives">ǥ쥯ƥ</a></h2> + + <ul> + <li><code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code></li> + <li><code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code></li> + <li><code class="directive"><a href="../mod/core.html#servername">ServerName</a></code></li> + <li><code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code></li> + <li><code class="directive"><a href="../mod/core.html#serverpath">ServerPath</a></code></li> + </ul> + + <p>СۥȤΥǥХåˤ + Apache Υޥɥ饤å <code>-S</code> Ǥ + ĤޤꡢʲΥޥɤϤޤ:</p> + + <div class="example"><p><code> + /usr/local/apache2/bin/httpd -S + </code></p></div> + + <p>Υޥɤ Apache եɤϤˤĤƽϤޤ + IP ɥ쥹ȥ̾տĴ٤С + δְ㤤ĤˤʤǤ礦 + (¾Υޥɥ饤Υץ <code class="program"><a href="../programs/httpd.html">httpd</a></code> + ץʸƤ)</p> + +</div></div> +<div class="bottomlang"> +<p><span>Available Languages: </span><a href="../de/vhosts/" hreflang="de" rel="alternate" title="Deutsch"> de </a> | +<a href="../en/vhosts/" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/" hreflang="fr" rel="alternate" title="Franais"> fr </a> | +<a href="../ja/vhosts/" title="Japanese"> ja </a> | +<a href="../ko/vhosts/" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="../ru/vhosts/" hreflang="ru" rel="alternate" title="Russian"> ru </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/">⥸塼</a> | <a href="../mod/directives.html">ǥ쥯ƥ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Ѹ</a> | <a href="../sitemap.html">ȥޥå</a></p></div> +</body></html>
\ No newline at end of file diff --git a/docs/manual/vhosts/index.html.ko.euc-kr b/docs/manual/vhosts/index.html.ko.euc-kr new file mode 100644 index 00000000..de49c5b2 --- /dev/null +++ b/docs/manual/vhosts/index.html.ko.euc-kr @@ -0,0 +1,108 @@ +<?xml version="1.0" encoding="EUC-KR"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>ġ ȣƮ - Apache HTTP Server</title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/"></a> | <a href="../mod/directives.html">þ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html"></a> | <a href="../sitemap.html">Ʈ</a></p> +<p class="apache">Apache HTTP Server Version 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a></div><div id="page-content"><div id="preamble"><h1>ġ ȣƮ </h1> +<div class="toplang"> +<p><span> : </span><a href="../de/vhosts/" hreflang="de" rel="alternate" title="Deutsch"> de </a> | +<a href="../en/vhosts/" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="../ja/vhosts/" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/" title="Korean"> ko </a> | +<a href="../ru/vhosts/" hreflang="ru" rel="alternate" title="Russian"> ru </a></p> +</div> +<div class="outofdate"> ֽ ƴմϴ. + ֱٿ ϼ.</div> + + + <p><cite>ȣƮ (Virtual Host)</cite> ǻͿ + Ʈ ( , <code>www.company1.com</code> + <code>www.company2.com</code>) Ѵ. + ȣƮ Ʈ ٸ IP ּҸ ϴ + "<a href="ip-based.html">IP (IP-based)</a>" İ + IP ּҴ ̸ "<a href="name-based.html"≯ (name-based)</a>" + ִ. Ʈ ִٴ ڴ + ġä Ѵ.</p> + + <p>ġ ⺻ IP ȣƮ â + ϳ. ġ 1.1 ̻ IPݰ ̸ + ȣƮ Ѵ. ̸ ȣƮ + <em>ȣƮ (host-based)</em> Ǵ <em>IP ȣƮ + (non-IP virtual hosts)</em> θ.</p> + + <p> ġ 1.3 ̻ ȣƮ ڼ + ̴.</p> + +</div> +<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#support">ȣƮ </a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#directives"> þ</a></li> +</ul><h3></h3><ul class="seealso"><li><code class="module"><a href="../mod/mod_vhost_alias.html">mod_vhost_alias</a></code></li><li><a href="name-based.html"≯ ȣƮ</a></li><li><a href="ip-based.html">IP ȣƮ</a></li><li><a href="examples.html">ȣƮ </a></li><li><a href="fd-limits.html">ϱ Ѱ</a></li><li><a href="mass.html">뷮 ȣƮ</a></li><li><a href="details.html">ȣƮ ã ڼ </a></li></ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="support" id="support">ȣƮ </a></h2> + + <ul> + <li><a href="name-based.html"≯ ȣƮ</a> + (IP ּҴ Ʈ)</li> + <li><a href="ip-based.html">IP ȣƮ</a> ( + Ʈ IP ּ)</li> + <li><a href="examples.html">Ϲ ȣƮ </a></li> + <li><a href="fd-limits.html">ϱ(file descriptor) + Ѱ</a> (, <em>ʹ α</em>)</li> + <li><a href="mass.html">뷮 ȣƮ + ϱ</a></li> + <li><a href="details.html">ȣƮ ã ڼ + </a></li> + </ul> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="directives" id="directives"> þ</a></h2> + + <ul> + <li><code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code></li> + <li><code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code></li> + <li><code class="directive"><a href="../mod/core.html#servername">ServerName</a></code></li> + <li><code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code></li> + <li><code class="directive"><a href="../mod/core.html#serverpath">ServerPath</a></code></li> + </ul> + + <p>ȣƮ ƮҶ ġ <code>-S</code> + ɼ ϴ. , Ѵ:</p> + + <div class="example"><p><code> + /usr/local/apache2/bin/httpd -S + </code></p></div> + + <p> ɾ ġ Ͽ + Ѵ. IP ּҿ ڼ 캸 + Ǽ ߰ϴµ ̴. (ٸ ɼǵ + <a href="../programs/httpd.html">httpd α </a> + ϶.)</p> + +</div></div> +<div class="bottomlang"> +<p><span> : </span><a href="../de/vhosts/" hreflang="de" rel="alternate" title="Deutsch"> de </a> | +<a href="../en/vhosts/" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="../ja/vhosts/" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/" title="Korean"> ko </a> | +<a href="../ru/vhosts/" hreflang="ru" rel="alternate" title="Russian"> ru </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/"></a> | <a href="../mod/directives.html">þ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html"></a> | <a href="../sitemap.html">Ʈ</a></p></div> +</body></html>
\ No newline at end of file diff --git a/docs/manual/vhosts/index.html.ru.koi8-r b/docs/manual/vhosts/index.html.ru.koi8-r new file mode 100644 index 00000000..42e86f00 --- /dev/null +++ b/docs/manual/vhosts/index.html.ru.koi8-r @@ -0,0 +1,105 @@ +<?xml version="1.0" encoding="KOI8-R"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="ru" xml:lang="ru"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title> Apache - HTTP Apache</title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/"></a> | <a href="../mod/directives.html"></a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html"></a> | <a href="../sitemap.html"> </a></p> +<p class="apache">HTTP Apache 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="../"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP </a> > <a href="http://httpd.apache.org/docs/"></a> > <a href="../"> 2.2</a></div><div id="page-content"><div id="preamble"><h1> Apache</h1> +<div class="toplang"> +<p><span> : </span><a href="../de/vhosts/" hreflang="de" rel="alternate" title="Deutsch"> de </a> | +<a href="../en/vhosts/" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="../ja/vhosts/" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="../ru/vhosts/" title="Russian"> ru </a></p> +</div> + + + <p> <cite> </cite> + - (, + <code>www.company1.com</code> <code>www.company2.com</code>) + . «<a href="ip-based.html"> IP-</a>», + IP , «<a href="name-based.html"> </a>», + ͣ IP-. , + , + .</p> + + <p>Apache , IP- + . Apache 1.1 + IP-, , . + + <em>-</em> <em>-IP </em>.</p> + + <p> , + Apache 1.3 .</p> + +</div> +<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#support"> </a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#directives"> </a></li> +</ul><h3>. </h3><ul class="seealso"><li><code class="module"><a href="../mod/mod_vhost_alias.html">mod_vhost_alias</a></code></li><li><a href="name-based.html"> , </a></li><li><a href="ip-based.html">IP- </a></li><li><a href="examples.html"> </a></li><li><a href="fd-limits.html"> </a></li><li><a href="mass.html"> </a></li><li><a href="details.html"> </a></li></ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="support" id="support"> </a></h2> + + <ul> + <li><a href="name-based.html"> , </a> + ( - IP ).</li> + <li><a href="ip-based.html">IP- </a> ( + IP -).</li> + <li><a href="examples.html"> </a>.</li> + <li><a href="fd-limits.html"> </a> (, + <em>Too many log files</em>)</li> + <li><a href="mass.html"> </a></li> + <li><a href="details.html"> </a></li> + </ul> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="directives" id="directives"> </a></h2> + + <ul> + <li><code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code></li> + <li><code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code></li> + <li><code class="directive"><a href="../mod/core.html#servername">ServerName</a></code></li> + <li><code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code></li> + <li><code class="directive"><a href="../mod/core.html#serverpath">ServerPath</a></code></li> + </ul> + + <p> , + Apache <code>-S</code> . + , :</p> + + <div class="example"><p><code> + /usr/local/apache2/bin/httpd -S + </code></p></div> + + <p> , Apache + . IP ͣ + . ( + <code class="program"><a href="../programs/httpd.html">httpd</a></code> + .)</p> + +</div></div> +<div class="bottomlang"> +<p><span> : </span><a href="../de/vhosts/" hreflang="de" rel="alternate" title="Deutsch"> de </a> | +<a href="../en/vhosts/" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="../ja/vhosts/" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="../ru/vhosts/" title="Russian"> ru </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/"></a> | <a href="../mod/directives.html"></a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html"></a> | <a href="../sitemap.html"> </a></p></div> +</body></html>
\ No newline at end of file diff --git a/docs/manual/vhosts/ip-based.html b/docs/manual/vhosts/ip-based.html new file mode 100644 index 00000000..c18fe7e0 --- /dev/null +++ b/docs/manual/vhosts/ip-based.html @@ -0,0 +1,15 @@ +URI: ip-based.html.en +Content-Language: en +Content-type: text/html; charset=ISO-8859-1 + +URI: ip-based.html.fr +Content-Language: fr +Content-type: text/html; charset=ISO-8859-1 + +URI: ip-based.html.ja.euc-jp +Content-Language: ja +Content-type: text/html; charset=EUC-JP + +URI: ip-based.html.ko.euc-kr +Content-Language: ko +Content-type: text/html; charset=EUC-KR diff --git a/docs/manual/vhosts/ip-based.html.en b/docs/manual/vhosts/ip-based.html.en new file mode 100644 index 00000000..5bdf0ebb --- /dev/null +++ b/docs/manual/vhosts/ip-based.html.en @@ -0,0 +1,162 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>Apache IP-based Virtual Host Support - Apache HTTP Server</title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p> +<p class="apache">Apache HTTP Server Version 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">Virtual Hosts</a></div><div id="page-content"><div id="preamble"><h1>Apache IP-based Virtual Host Support</h1> +<div class="toplang"> +<p><span>Available Languages: </span><a href="../en/vhosts/ip-based.html" title="English"> en </a> | +<a href="../fr/vhosts/ip-based.html" hreflang="fr" rel="alternate" title="Franais"> fr </a> | +<a href="../ja/vhosts/ip-based.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/ip-based.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div> +</div> +<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#requirements">System requirements</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#howto">How to set up Apache</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#multiple">Setting up multiple daemons</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#single">Setting up a single daemon + with virtual hosts</a></li> +</ul><h3>See also</h3><ul class="seealso"><li> +<a href="name-based.html">Name-based Virtual Hosts Support</a> +</li></ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="requirements" id="requirements">System requirements</a></h2> + + <p>As the term <cite>IP-based</cite> indicates, the server + <strong>must have a different IP address for each IP-based + virtual host</strong>. This can be achieved by the machine + having several physical network connections, or by use of + virtual interfaces which are supported by most modern operating + systems (see system documentation for details, these are + frequently called "ip aliases", and the "ifconfig" command is + most commonly used to set them up).</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="howto" id="howto">How to set up Apache</a></h2> + + <p>There are two ways of configuring apache to support multiple + hosts. Either by running a separate <code class="program"><a href="../programs/httpd.html">httpd</a></code> daemon for + each hostname, or by running a single daemon which supports all the + virtual hosts.</p> + + <p>Use multiple daemons when:</p> + + <ul> + <li>There are security partitioning issues, such as company1 + does not want anyone at company2 to be able to read their + data except via the web. In this case you would need two + daemons, each running with different <code class="directive"><a href="../mod/mpm_common.html#user">User</a></code>, <code class="directive"><a href="../mod/mpm_common.html#group">Group</a></code>, <code class="directive"><a href="../mod/mpm_common.html#listen">Listen</a></code>, and <code class="directive"><a href="../mod/core.html#serverroot">ServerRoot</a></code> settings.</li> + + <li>You can afford the memory and file descriptor + requirements of listening to every IP alias on the + machine. It's only possible to <code class="directive"><a href="../mod/mpm_common.html#listen">Listen</a></code> to the "wildcard" + address, or to specific addresses. So if you have a need to + listen to a specific address for whatever reason, then you + will need to listen to all specific addresses. (Although one + <code class="program"><a href="../programs/httpd.html">httpd</a></code> could listen to N-1 of the addresses, and another could + listen to the remaining address.)</li> + </ul> + + <p>Use a single daemon when:</p> + + <ul> + <li>Sharing of the httpd configuration between virtual hosts + is acceptable.</li> + + <li>The machine services a large number of requests, and so + the performance loss in running separate daemons may be + significant.</li> + </ul> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="multiple" id="multiple">Setting up multiple daemons</a></h2> + + <p>Create a separate <code class="program"><a href="../programs/httpd.html">httpd</a></code> installation for each + virtual host. For each installation, use the <code class="directive"><a href="../mod/mpm_common.html#listen">Listen</a></code> directive in the + configuration file to select which IP address (or virtual host) + that daemon services. e.g.</p> + + <div class="example"><p><code> + Listen www.smallco.com:80 + </code></p></div> + + <p>It is recommended that you use an IP address instead of a + hostname (see <a href="../dns-caveats.html">DNS caveats</a>).</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="single" id="single">Setting up a single daemon + with virtual hosts</a></h2> + + <p>For this case, a single <code class="program"><a href="../programs/httpd.html">httpd</a></code> will service + requests for the main server and all the virtual hosts. The <code class="directive"><a href="../mod/core.html#virtualhost">VirtualHost</a></code> directive + in the configuration file is used to set the values of <code class="directive"><a href="../mod/core.html#serveradmin">ServerAdmin</a></code>, <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code>, <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code>, <code class="directive"><a href="../mod/core.html#errorlog">ErrorLog</a></code> and <code class="directive"><a href="../mod/mod_log_config.html#transferlog">TransferLog</a></code> + or <code class="directive"><a href="../mod/mod_log_config.html#customlog">CustomLog</a></code> + configuration directives to different values for each virtual + host. e.g.</p> + + <div class="example"><p><code> + <VirtualHost www.smallco.com><br /> + ServerAdmin webmaster@mail.smallco.com<br /> + DocumentRoot /groups/smallco/www<br /> + ServerName www.smallco.com<br /> + ErrorLog /groups/smallco/logs/error_log<br /> + TransferLog /groups/smallco/logs/access_log<br /> + </VirtualHost><br /> + <br /> + <VirtualHost www.baygroup.org><br /> + ServerAdmin webmaster@mail.baygroup.org<br /> + DocumentRoot /groups/baygroup/www<br /> + ServerName www.baygroup.org<br /> + ErrorLog /groups/baygroup/logs/error_log<br /> + TransferLog /groups/baygroup/logs/access_log<br /> + </VirtualHost> + </code></p></div> + + <p>It is recommended that you use an IP address instead of a + hostname (see <a href="../dns-caveats.html">DNS caveats</a>).</p> + + <p>Almost <strong>any</strong> configuration directive can be + put in the VirtualHost directive, with the exception of + directives that control process creation and a few other + directives. To find out if a directive can be used in the + VirtualHost directive, check the <a href="../mod/directive-dict.html#Context">Context</a> using the + <a href="../mod/directives.html">directive index</a>.</p> + + <p><code class="directive"><a href="../mod/mod_suexec.html#suexecusergroup">SuexecUserGroup</a></code> + may be used inside a + VirtualHost directive if the <a href="../suexec.html">suEXEC + wrapper</a> is used.</p> + + <p><em>SECURITY:</em> When specifying where to write log files, + be aware of some security risks which are present if anyone + other than the user that starts Apache has write access to the + directory where they are written. See the <a href="../misc/security_tips.html">security tips</a> document + for details.</p> + +</div></div> +<div class="bottomlang"> +<p><span>Available Languages: </span><a href="../en/vhosts/ip-based.html" title="English"> en </a> | +<a href="../fr/vhosts/ip-based.html" hreflang="fr" rel="alternate" title="Franais"> fr </a> | +<a href="../ja/vhosts/ip-based.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/ip-based.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div> +</body></html>
\ No newline at end of file diff --git a/docs/manual/vhosts/ip-based.html.fr b/docs/manual/vhosts/ip-based.html.fr new file mode 100644 index 00000000..d442c40b --- /dev/null +++ b/docs/manual/vhosts/ip-based.html.fr @@ -0,0 +1,182 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>Support Apache des serveurs virtuels par IP - Serveur Apache HTTP</title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossaire</a> | <a href="../sitemap.html">Plan du site</a></p> +<p class="apache">Serveur Apache HTTP Version 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">Serveur HTTP</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">Serveurs virtuels</a></div><div id="page-content"><div id="preamble"><h1>Support Apache des serveurs virtuels par IP</h1> +<div class="toplang"> +<p><span>Langues Disponibles: </span><a href="../en/vhosts/ip-based.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/ip-based.html" title="Franais"> fr </a> | +<a href="../ja/vhosts/ip-based.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/ip-based.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div> +</div> +<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#requirements">Systme requis</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#howto">Comment configurer Apache</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#multiple">Configuration de processus multiples</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#single">Configuration d'un unique processus +rsident pour des serveurs virtuels</a></li> +</ul><h3>Voir aussi</h3><ul class="seealso"><li> +<a href="name-based.html">Support Apache des serveurs virtuels par nom</a> +</li></ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="requirements" id="requirements">Systme requis</a></h2> + + <p>Comme l'indique le terme <cite>par IP</cite>, le serveur + <strong>doit disposer de diffrentes adresses IP pour chaque + serveur virtuel par IP</strong>. La machine peut possder + plusieurs connexions physiques au rseau, ou utiliser des + interfaces virtuelles qui sont supportes par la plupart des + systmes d'exploitation modernes (Consultez la documentation des + systmes d'exploitation pour plus de dtails, notamment les "alias + IP" et la commande "ifconfig" pour les activer).</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="howto" id="howto">Comment configurer Apache</a></h2> + + <p>Il y a deux manires de configurer Apache pour le support de + multiples serveurs virtuels. Il suffit soit de faire tourner un + processus rsident <code class="program"><a href="../programs/httpd.html">httpd</a></code> pour chaque nom de + domaine, soit de faire tourner un unique processus rsident qui + gre tous les serveurs virtuels.</p> + + <p>Utilisez des processus rsidents multiples lorsque :</p> + + <ul> + <li>il y a des problmes de rpartition de scurit, tels + qu'une entreprise1 ne souhaite que personne d'une entreprise2 + ne puisse lire ses donnes except via le Web. Dans ce cas, + vous aurez besoin de deux processus rsidents, chacun fonctionnant + avec des paramtres <code class="directive"><a href="../mod/mpm_common.html#user">User</a></code>, + <code class="directive"><a href="../mod/mpm_common.html#group">Group</a></code>, + <code class="directive"><a href="../mod/mpm_common.html#listen">Listen</a></code>, et + <code class="directive"><a href="../mod/core.html#serverroot">ServerRoot</a></code> diffrents.</li> + + <li>vous disposez suffisamment de mmoire et de + <a href="../misc/descriptors.html">descripteurs de fichiers</a> + pour l'coute de chaque alias IP de la machine. Il est seulement + possible d'appliquer la directive + <code class="directive"><a href="../mod/mpm_common.html#listen">Listen</a></code>, soit sur toutes + les adresses avec le joker "*", soit uniquement sur des adresses + spcifiques. Donc, si vous avez besoin d'couter une adresse + en particulier, vous devrez le faire pour l'ensemble des + autres adresses (Bien qu'il soit plus simple de lancer un + processus <code class="program"><a href="../programs/httpd.html">httpd</a></code> pour couter N-1 adresses, + et un autre pour l'adresse restante).</li> + </ul> + + <p>Utilisez un unique processus rsident lorsque :</p> + + <ul> + <li>le partage de la configuration httpd entre les serveurs + virtuels est acceptable.</li> + + <li>la machine assume dj une grande quantit de requtes, et + que l'ajout de processus rsidents supplmentaires en affecterait + les performances.</li> + </ul> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="multiple" id="multiple">Configuration de processus multiples</a></h2> + + <p>Crez une installation indpendante du programme + <code class="program"><a href="../programs/httpd.html">httpd</a></code> pour chaque serveur virtuel. Pour + chacune d'elle, utilisez la directive + <code class="directive"><a href="../mod/mpm_common.html#listen">Listen</a></code> dans le fichier + de configuration pour dfinir l'adresse IP (ou serveur virtuel) + que le processus rsident doit grer. Par exemple :</p> + + <div class="example"><p><code> + Listen www.smallco.com:80 + </code></p></div> + + <p>Il est recommand d'utiliser une adresse IP plutt qu'un nom + de domaine (consultez <a href="../dns-caveats.html">Problmes DNS + avec Apache</a>).</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="single" id="single">Configuration d'un unique processus +rsident pour des serveurs virtuels</a></h2> + + <p>Dans ce cas, un unique processus httpd va grer les requtes + pour le serveur principal et tous les serveurs virtuels. Dans le + fichier de configuration, la directive + <code class="directive"><a href="../mod/core.html#virtualhost">VirtualHost</a></code> va servir + dfinir les autres directives + <code class="directive"><a href="../mod/core.html#serveradmin">ServerAdmin</a></code>, + <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code>, + <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code>, + <code class="directive"><a href="../mod/core.html#errorlog">ErrorLog</a></code> et + <code class="directive"><a href="../mod/mod_log_config.html#transferlog">TransferLog</a></code> ou + <code class="directive"><a href="../mod/mod_log_config.html#customlog">CustomLog</a></code> avec des + valeurs diffrentes pour chaque serveur virtuel. Par exemple :</p> + + <div class="example"><p><code> + <VirtualHost www.smallco.com><br /> + ServerAdmin webmaster@mail.smallco.com<br /> + DocumentRoot /groups/smallco/www<br /> + ServerName www.smallco.com<br /> + ErrorLog /groups/smallco/logs/error_log<br /> + TransferLog /groups/smallco/logs/access_log<br /> + </VirtualHost><br /> + <br /> + <VirtualHost www.baygroup.org><br /> + ServerAdmin webmaster@mail.baygroup.org<br /> + DocumentRoot /groups/baygroup/www<br /> + ServerName www.baygroup.org<br /> + ErrorLog /groups/baygroup/logs/error_log<br /> + TransferLog /groups/baygroup/logs/access_log<br /> + </VirtualHost> + </code></p></div> + + <p>Il est recommand d'utiliser une adresse IP plutt qu'un nom + de domaine (consultez <a href="../dns-caveats.html">Problmes DNS + avec Apache</a>).</p> + + <p>Presque <strong>toutes</strong> les directives de configuration + peuvent tre employes dans une directive VirtualHost, l'exception + des directives qui contrlent la cration du processus et de + quelques autres. Pour connatre celles utilisables dans une + directive VirtualHost, vrifiez leur + <a href="../mod/directive-dict.html#Context">Contexte</a> en utilisant + l'<a href="../mod/directives.html">Index des directives</a>.</p> + + + <p><code class="directive"><a href="../mod/mod_suexec.html#suexecusergroup">SuexecUserGroup</a></code> peut tre + utilises l'intrieur d'une directive VirtualHost si l'excution se fait + sous suEXEC. (Voir <a href="../suexec.html">suEXEC</a>).</p> + + <p><em>SCURIT :</em> lorsque vous spcifiez o crire les + fichiers journaux, soyez attentif aux risques si quelqu'un d'autre + que celui qui a dmarr Apache dispose des droits d'criture + sur l'emplacement de ces fichiers. Consultez les + <a href="../misc/security_tips.html">Conseils sur la scurit</a> + pour plus de dtails.</p> + +</div></div> +<div class="bottomlang"> +<p><span>Langues Disponibles: </span><a href="../en/vhosts/ip-based.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/ip-based.html" title="Franais"> fr </a> | +<a href="../ja/vhosts/ip-based.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/ip-based.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Authoris sous <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossaire</a> | <a href="../sitemap.html">Plan du site</a></p></div> +</body></html>
\ No newline at end of file diff --git a/docs/manual/vhosts/ip-based.html.ja.euc-jp b/docs/manual/vhosts/ip-based.html.ja.euc-jp new file mode 100644 index 00000000..fc10309a --- /dev/null +++ b/docs/manual/vhosts/ip-based.html.ja.euc-jp @@ -0,0 +1,158 @@ +<?xml version="1.0" encoding="EUC-JP"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>Apache IP ١ΥСۥȥݡ - Apache HTTP </title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/">⥸塼</a> | <a href="../mod/directives.html">ǥ쥯ƥ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Ѹ</a> | <a href="../sitemap.html">ȥޥå</a></p> +<p class="apache">Apache HTTP С 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP </a> > <a href="http://httpd.apache.org/docs/">ɥơ</a> > <a href="../">С 2.2</a> > <a href="./">Сۥ</a></div><div id="page-content"><div id="preamble"><h1>Apache IP ١ΥСۥȥݡ</h1> +<div class="toplang"> +<p><span>Available Languages: </span><a href="../en/vhosts/ip-based.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/ip-based.html" hreflang="fr" rel="alternate" title="Franais"> fr </a> | +<a href="../ja/vhosts/ip-based.html" title="Japanese"> ja </a> | +<a href="../ko/vhosts/ip-based.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div> +</div> +<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#requirements">ƥ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#howto">Apache ˡ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#multiple">ʣǡ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#single">ʣΥСۥȤ +ǡꤹ</a></li> +</ul><h3></h3><ul class="seealso"><li> +<a href="name-based.html">̾١ΥСۥȥݡ</a> +</li></ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="requirements" id="requirements">ƥ</a></h2> + + <p><cite>IP ١</cite> Ȥ̾褦ˡФˤ + <strong>IP ١ΥСۥȤ줾ˤĤ̡ IP ɥ쥹 + ɬפǤ</strong>ʣʪͥäƤޥѰդ뤫 + ǶΥڥ졼ƥƥǥݡȤƤС + ե (ܺ٤ϥƥɤǤƤ + "ip ꥢ" ȸƤФƤơˤ "ifconfig" ޥɤ + Ȥޤ) ȤǼ¸Ǥޤ</p> +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="howto" id="howto">Apache ˡ</a></h2> + + <p>ʣΥۥȤݡȤ褦 Apache ꤹˡ + ̤ꤢޤ̤ <code class="program"><a href="../programs/httpd.html">httpd</a></code> ǡƥۥ˼¹Ԥ뤫 + ٤ƤΥСۥȤݡȤǡļ¹Ԥ뤫Ǥ</p> + + <p>ʲΤȤˤʣΥǡȤɤǤ礦:</p> + + <ul> + <li>1 ϥַͳʳǤϲ2 ϥǡɤޤ줿ʤ + ȤäƥʬΥ꤬Ȥξ硢줾 + <code class="directive"><a href="../mod/mpm_common.html#user">User</a></code>, <code class="directive"><a href="../mod/mpm_common.html#group">Group</a></code>, <code class="directive"><a href="../mod/mpm_common.html#listen">Listen</a></code>, <code class="directive"><a href="../mod/core.html#serverroot">ServerRoot</a></code> ꤬㤦ĤΥǡ + ¹Ԥɬפޤ</li> + + <li>ޥΤ٤Ƥ IP ꥢ listen + ȥե뵭һҤ;͵Ȥ<code class="directive"><a href="../mod/mpm_common.html#listen">Listen</a></code> ϡ֥磻ɥɡ + ɥ쥹Υɥ쥹Τߤ listen 뤳ȤǤޤ + Ǥ顢餫ͳΥɥ쥹 listen ʤФʤʤ + ȤϡΥɥ쥹٤ listen ɬפޤ + (Ĥ <code class="program"><a href="../programs/httpd.html">httpd</a></code> N-1 ĤΥɥ쥹 listen + ̤ <code class="program"><a href="../programs/httpd.html">httpd</a></code> ĤΥɥ쥹 listen ȤäȤϲǽǤ)</li> + </ul> + + <p>ʲΤȤˤñȤΥǡȤɤǤ礦:</p> + + <ul> + <li>Сۥȴ֤Ǥ httpd ͭƤ褤Ȥ</li> + + <li>ޥ¿ΥꥯȤᡢ̥ǡ¹Ԥ뤳Ȥˤ + ǽ㲼αƶȤ</li> + </ul> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="multiple" id="multiple">ʣǡ</a></h2> + + <p>ƥСۥȤФ̤ <code class="program"><a href="../programs/httpd.html">httpd</a></code> ΥȡԤʤޤ + ե <code class="directive"><a href="../mod/mpm_common.html#listen">Listen</a></code> + ǥ쥯ƥ֤Ȥäơ + ƥȡǥǡ IP ɥ쥹 (Сۥ) + ޤ㤨</p> + + <div class="example"><p><code> + Listen www.smallco.com:80 + </code></p></div> + + <p>ǡۥ̾ IP ɥ쥹Ȥ侩Ƥ뤳Ȥ + դƤƤ + (<a href="../dns-caveats.html">DNS ջ</a> )</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="single" id="single">ʣΥСۥȤ +ǡꤹ</a></h2> + + <p>ξϡĤ <code class="program"><a href="../programs/httpd.html">httpd</a></code> 祵ФȤ٤ƤΥСۥȤΥꥯȤ + ޤե <code class="directive"><a href="../mod/core.html#virtualhost">VirtualHost</a></code> ǥ쥯ƥ֤Ȥäơ + <code class="directive"><a href="../mod/core.html#serveradmin">ServerAdmin</a></code>, <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code>, <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code>, <code class="directive"><a href="../mod/core.html#errorlog">ErrorLog</a></code>, <code class="directive"><a href="../mod/mod_log_config.html#transferlog">TransferLog</a></code> + <code class="directive"><a href="../mod/mod_log_config.html#customlog">CustomLog</a></code> + ǥ쥯ƥ֤ͤƥۥ˰ۤʤͤꤵ褦ˤޤ + 㤨</p> + + <div class="example"><p><code> + <VirtualHost www.smallco.com><br /> + ServerAdmin webmaster@mail.smallco.com<br /> + DocumentRoot /groups/smallco/www<br /> + ServerName www.smallco.com<br /> + ErrorLog /groups/smallco/logs/error_log<br /> + TransferLog /groups/smallco/logs/access_log<br /> + </VirtualHost><br /> + <br /> + <VirtualHost www.baygroup.org><br /> + ServerAdmin webmaster@mail.baygroup.org<br /> + DocumentRoot /groups/baygroup/www<br /> + ServerName www.baygroup.org<br /> + ErrorLog /groups/baygroup/logs/error_log<br /> + TransferLog /groups/baygroup/logs/access_log<br /> + </VirtualHost> + </code></p></div> + + <p>ǡۥ̾ IP ɥ쥹Ȥ侩Ƥ뤳Ȥ + դƤƤ + (<a href="../dns-caveats.html">DNS ջ</a> )</p> + + <p>ץ椹ǥ쥯ƥ֤䤽¾ΤĤΥǥ쥯ƥ֤ + ơۤ<strong>٤</strong>ǥ쥯ƥ֤ VirtualHost + ǥ쥯ƥ֤˽ȤǤޤǥ쥯ƥ֤ VirtualHost + ǥ쥯ƥ֤ǻѤǤ뤫ɤ <a href="../mod/directives.html">ǥ쥯ƥֺ</a>Ȥä<a href="../mod/directive-dict.html#Context">ƥ</a> + Ĵ٤Ƥ</p> + + <p><a href="../suexec.html">suEXECåѡ</a>ȤäƤϡ + <code class="directive"><a href="../mod/mod_suexec.html#suexecusergroup">SuexecUserGroup</a></code> + ǥ쥯ƥ֤ VirtualHost + ǥ쥯ƥ֤ǻѤ뤳ȤǤޤ</p> + + <p><em>ƥ:</em> եꤹȤϡ + Apache ư桼ʳΥǥ쥯ȥ˽߸¤ + äƤ˥ƥδ뤳ȤդƤ + ܺ٤<a href="../misc/security_tips.html">ƥΤ</a>ɥȤ + ȤƤ</p> + +</div></div> +<div class="bottomlang"> +<p><span>Available Languages: </span><a href="../en/vhosts/ip-based.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/ip-based.html" hreflang="fr" rel="alternate" title="Franais"> fr </a> | +<a href="../ja/vhosts/ip-based.html" title="Japanese"> ja </a> | +<a href="../ko/vhosts/ip-based.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/">⥸塼</a> | <a href="../mod/directives.html">ǥ쥯ƥ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Ѹ</a> | <a href="../sitemap.html">ȥޥå</a></p></div> +</body></html>
\ No newline at end of file diff --git a/docs/manual/vhosts/ip-based.html.ko.euc-kr b/docs/manual/vhosts/ip-based.html.ko.euc-kr new file mode 100644 index 00000000..68442f4d --- /dev/null +++ b/docs/manual/vhosts/ip-based.html.ko.euc-kr @@ -0,0 +1,152 @@ +<?xml version="1.0" encoding="EUC-KR"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>ġ IP ȣƮ - Apache HTTP Server</title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/"></a> | <a href="../mod/directives.html">þ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html"></a> | <a href="../sitemap.html">Ʈ</a></p> +<p class="apache">Apache HTTP Server Version 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">ȣƮ</a></div><div id="page-content"><div id="preamble"><h1>ġ IP ȣƮ </h1> +<div class="toplang"> +<p><span> : </span><a href="../en/vhosts/ip-based.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/ip-based.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="../ja/vhosts/ip-based.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/ip-based.html" title="Korean"> ko </a></p> +</div> +<div class="outofdate"> ֽ ƴմϴ. + ֱٿ ϼ.</div> +</div> +<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#requirements">ý 䱸</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#howto">ġ </a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#multiple"> ϱ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#single"> ϳ ȣƮ ϱ</a></li> +</ul><h3></h3><ul class="seealso"><li> +<a href="name-based.html"≯ ȣƮ </a> +</li></ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="requirements" id="requirements">ý 䱸</a></h2> + + <p><cite>IP</cite>̶ ǹϵ + <strong>IP ȣƮ ٸ IP ּҸ + Ѵ</strong>. ̴ ǻ Ʈ + ϰų, ֱ ü ϴ ̽ + (ڼ ý ϶. "ip aliases" + ϸ, "ifconfig" ɾ ) Ͽ ϴ.</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="howto" id="howto">ġ </a></h2> + + <p> ȣƮ ϵ ġ ϴ ΰ. + ϳ ȣƮ ϴ + ̰, ٸ ϳ ȣƮ ϴ Ѱ + ϴ ̴.</p> + + <p> ϳ:</p> + + <ul> + <li>ȸ2 ڰ ̿ ȸ1 ڷḦ + ϴ Ȼ ʿ . + ٸ <code class="directive"><a href="../mod/mpm_common.html#user">User</a></code>, <code class="directive"><a href="../mod/mpm_common.html#group">Group</a></code>, <code class="directive"><a href="../mod/mpm_common.html#listen">Listen</a></code>, <code class="directive"><a href="../mod/core.html#serverroot">ServerRoot</a></code> ؾ Ѵ.</li> + + <li> ְ, ǻ IP ٸ + ϱ(file descriptor) 䱸 Ѵ. "ϵī" + Ư ּҸ <code class="directive"><a href="../mod/mpm_common.html#listen">Listen</a></code> ִ. + Ư ּҸ ٸ ʿ䰡 ִٸ, ( + ּҸ ּҸ ٸ ٸ + ּҸ ٸ ) ּ + θ ٷ Ѵ.</li> + </ul> + + <p> Ѱ ϳ:</p> + + <ul> + <li>ȣƮ ִ .</li> + + <li>ǻͰ ſ û Ѵٸ + ϱ ӵ ս Ŭ ִ.</li> + </ul> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="multiple" id="multiple"> ϱ</a></h2> + + <p> ȣƮ ġѴ. + <code class="directive"><a href="../mod/mpm_common.html#listen">Listen</a></code> þ + IP ּ(Ȥ ȣƮ) ش. + ,</p> + + <div class="example"><p><code> + Listen www.smallco.com:80 + </code></p></div> + + <p>ȣƮ ٴ IP ּҸ ϱ ٶ. + (<a href="../dns-caveats.html">DNS </a> )</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="single" id="single"> ϳ ȣƮ ϱ</a></h2> + + <p> Ѱ ּ ȣƮ + û Ѵ. <code class="directive"><a href="../mod/core.html#virtualhost">VirtualHost</a></code> þ ȣƮ + ٸ <code class="directive"><a href="../mod/core.html#serveradmin">ServerAdmin</a></code>, + <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code>, <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code>, <code class="directive"><a href="../mod/core.html#errorlog">ErrorLog</a></code>, <code class="directive"><a href="../mod/mod_log_config.html#transferlog">TransferLog</a></code>, + <code class="directive"><a href="../mod/mod_log_config.html#customlog">CustomLog</a></code> + þ Ѵ. ,</p> + + <div class="example"><p><code> + <VirtualHost www.smallco.com><br /> + ServerAdmin webmaster@mail.smallco.com<br /> + DocumentRoot /groups/smallco/www<br /> + ServerName www.smallco.com<br /> + ErrorLog /groups/smallco/logs/error_log<br /> + TransferLog /groups/smallco/logs/access_log<br /> + </VirtualHost><br /> + <br /> + <VirtualHost www.baygroup.org><br /> + ServerAdmin webmaster@mail.baygroup.org<br /> + DocumentRoot /groups/baygroup/www<br /> + ServerName www.baygroup.org<br /> + ErrorLog /groups/baygroup/logs/error_log<br /> + TransferLog /groups/baygroup/logs/access_log<br /> + </VirtualHost> + </code></p></div> + + <p>ȣƮ ٴ IP ּҸ ϱ ٶ. + (<a href="../dns-caveats.html">DNS </a> )</p> + + <p>VirtualHost þ ȿ μ Ÿ þ + ϰ <strong></strong> þ + ִ. VirtualHost þ ȿ þ ִ + ˷ <a href="../mod/directives.html">þ </a> + <a href="../mod/directive-dict.html#Context"></a> + Ȯ϶.</p> + + <p><a href="../suexec.html">suEXEC α</a> + Ѵٸ VirtualHost þ ȿ <code class="directive"><a href="../mod/mpm_common.html#user">User</a></code> <code class="directive"><a href="../mod/mpm_common.html#group">Group</a></code> ִ.</p> + + <p><em>:</em> ϴ ڿܿ ٸ + α ִ 丮 ִٸ + ϶. ڼ <a href="../misc/security_tips.html"> </a> ϶.</p> + +</div></div> +<div class="bottomlang"> +<p><span> : </span><a href="../en/vhosts/ip-based.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/ip-based.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="../ja/vhosts/ip-based.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/ip-based.html" title="Korean"> ko </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/"></a> | <a href="../mod/directives.html">þ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html"></a> | <a href="../sitemap.html">Ʈ</a></p></div> +</body></html>
\ No newline at end of file diff --git a/docs/manual/vhosts/mass.html b/docs/manual/vhosts/mass.html new file mode 100644 index 00000000..6c05d28e --- /dev/null +++ b/docs/manual/vhosts/mass.html @@ -0,0 +1,7 @@ +URI: mass.html.en +Content-Language: en +Content-type: text/html; charset=ISO-8859-1 + +URI: mass.html.ko.euc-kr +Content-Language: ko +Content-type: text/html; charset=EUC-KR diff --git a/docs/manual/vhosts/mass.html.en b/docs/manual/vhosts/mass.html.en new file mode 100644 index 00000000..25b2fe51 --- /dev/null +++ b/docs/manual/vhosts/mass.html.en @@ -0,0 +1,445 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>Dynamically configured mass virtual hosting - Apache HTTP Server</title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p> +<p class="apache">Apache HTTP Server Version 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">Virtual Hosts</a></div><div id="page-content"><div id="preamble"><h1>Dynamically configured mass virtual hosting</h1> +<div class="toplang"> +<p><span>Available Languages: </span><a href="../en/vhosts/mass.html" title="English"> en </a> | +<a href="../ko/vhosts/mass.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div> + + + <p>This document describes how to efficiently serve an + arbitrary number of virtual hosts with Apache. + </p> + +</div> +<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#motivation">Motivation</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#overview">Overview</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#simple">Simple dynamic virtual hosts</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#homepages">A virtually hosted homepages system</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#combinations">Using more than + one virtual hosting system on the same server</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#ipbased">More efficient IP-based virtual hosting</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#oldversion">Using older versions of Apache</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#simple.rewrite">Simple dynamic + virtual hosts using <code>mod_rewrite</code></a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#homepages.rewrite">A + homepages system using <code>mod_rewrite</code></a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#xtra-conf">Using a separate virtual + host configuration file</a></li> +</ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="motivation" id="motivation">Motivation</a></h2> + + <p>The techniques described here are of interest if your + <code>httpd.conf</code> contains many + <code><VirtualHost></code> sections that are + substantially the same, for example:</p> + +<div class="example"><p><code> +NameVirtualHost 111.22.33.44<br /> +<VirtualHost 111.22.33.44><br /> +<span class="indent"> + ServerName www.customer-1.com<br /> + DocumentRoot /www/hosts/www.customer-1.com/docs<br /> + ScriptAlias /cgi-bin/ /www/hosts/www.customer-1.com/cgi-bin<br /> +</span> +</VirtualHost><br /> +<VirtualHost 111.22.33.44><br /> +<span class="indent"> + ServerName www.customer-2.com<br /> + DocumentRoot /www/hosts/www.customer-2.com/docs<br /> + ScriptAlias /cgi-bin/ /www/hosts/www.customer-2.com/cgi-bin<br /> +</span> +</VirtualHost><br /> +# blah blah blah<br /> +<VirtualHost 111.22.33.44><br /> +<span class="indent"> + ServerName www.customer-N.com<br /> + DocumentRoot /www/hosts/www.customer-N.com/docs<br /> + ScriptAlias /cgi-bin/ /www/hosts/www.customer-N.com/cgi-bin<br /> +</span> +</VirtualHost> +</code></p></div> + + <p>The basic idea is to replace all of the static + <code><VirtualHost></code> configuration with a mechanism + that works it out dynamically. This has a number of + advantages:</p> + + <ol> + <li>Your configuration file is smaller so Apache starts + faster and uses less memory.</li> + + <li>Adding virtual hosts is simply a matter of creating the + appropriate directories in the filesystem and entries in the + DNS - you don't need to reconfigure or restart Apache.</li> + </ol> + + <p>The main disadvantage is that you cannot have a different + log file for each virtual host; however if you have very many + virtual hosts then doing this is dubious anyway because it eats + file descriptors. It is better to log to a pipe or a fifo and + arrange for the process at the other end to distribute the logs + to the customers (it can also accumulate statistics, etc.).</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="overview" id="overview">Overview</a></h2> + + <p>A virtual host is defined by two pieces of information: its + IP address, and the contents of the <code>Host:</code> header + in the HTTP request. The dynamic mass virtual hosting technique + is based on automatically inserting this information into the + pathname of the file that is used to satisfy the request. This + is done most easily using <code class="module"><a href="../mod/mod_vhost_alias.html">mod_vhost_alias</a></code>, + but if you are using a version of Apache up to 1.3.6 then you + must use <code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code>. + Both of these modules are disabled by default; you must enable + one of them when configuring and building Apache if you want to + use this technique.</p> + + <p>A couple of things need to be `faked' to make the dynamic + virtual host look like a normal one. The most important is the + server name which is used by Apache to generate + self-referential URLs, etc. It is configured with the + <code>ServerName</code> directive, and it is available to CGIs + via the <code>SERVER_NAME</code> environment variable. The + actual value used at run time is controlled by the <code class="directive"><a href="../mod/core.html#usecanonicalname">UseCanonicalName</a></code> + setting. With <code>UseCanonicalName Off</code> the server name + comes from the contents of the <code>Host:</code> header in the + request. With <code>UseCanonicalName DNS</code> it comes from a + reverse DNS lookup of the virtual host's IP address. The former + setting is used for name-based dynamic virtual hosting, and the + latter is used for IP-based hosting. If Apache cannot work out + the server name because there is no <code>Host:</code> header + or the DNS lookup fails then the value configured with + <code>ServerName</code> is used instead.</p> + + <p>The other thing to `fake' is the document root (configured + with <code>DocumentRoot</code> and available to CGIs via the + <code>DOCUMENT_ROOT</code> environment variable). In a normal + configuration this setting is used by the core module when + mapping URIs to filenames, but when the server is configured to + do dynamic virtual hosting that job is taken over by another + module (either <code>mod_vhost_alias</code> or + <code>mod_rewrite</code>) which has a different way of doing + the mapping. Neither of these modules is responsible for + setting the <code>DOCUMENT_ROOT</code> environment variable so + if any CGIs or SSI documents make use of it they will get a + misleading value.</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="simple" id="simple">Simple dynamic virtual hosts</a></h2> + + <p>This extract from <code>httpd.conf</code> implements the + virtual host arrangement outlined in the <a href="#motivation">Motivation</a> section above, but in a + generic fashion using <code>mod_vhost_alias</code>.</p> + +<div class="example"><p><code> +# get the server name from the Host: header<br /> +UseCanonicalName Off<br /> +<br /> +# this log format can be split per-virtual-host based on the first field<br /> +LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon<br /> +CustomLog logs/access_log vcommon<br /> +<br /> +# include the server name in the filenames used to satisfy requests<br /> +VirtualDocumentRoot /www/hosts/%0/docs<br /> +VirtualScriptAlias /www/hosts/%0/cgi-bin +</code></p></div> + + <p>This configuration can be changed into an IP-based virtual + hosting solution by just turning <code>UseCanonicalName + Off</code> into <code>UseCanonicalName DNS</code>. The server + name that is inserted into the filename is then derived from + the IP address of the virtual host.</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="homepages" id="homepages">A virtually hosted homepages system</a></h2> + + <p>This is an adjustment of the above system tailored for an + ISP's homepages server. Using a slightly more complicated + configuration we can select substrings of the server name to + use in the filename so that e.g. the documents for + <code>www.user.isp.com</code> are found in + <code>/home/user/</code>. It uses a single <code>cgi-bin</code> + directory instead of one per virtual host.</p> + +<div class="example"><p><code> +# all the preliminary stuff is the same as above, then<br /> +<br /> +# include part of the server name in the filenames<br /> +VirtualDocumentRoot /www/hosts/%2/docs<br /> +<br /> +# single cgi-bin directory<br /> +ScriptAlias /cgi-bin/ /www/std-cgi/<br /> +</code></p></div> + + <p>There are examples of more complicated + <code>VirtualDocumentRoot</code> settings in the + <code class="module"><a href="../mod/mod_vhost_alias.html">mod_vhost_alias</a></code> documentation.</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="combinations" id="combinations">Using more than + one virtual hosting system on the same server</a></h2> + + <p>With more complicated setups you can use Apache's normal + <code><VirtualHost></code> directives to control the + scope of the various virtual hosting configurations. For + example, you could have one IP address for homepages customers + and another for commercial customers with the following setup. + This can of course be combined with conventional + <code><VirtualHost></code> configuration sections.</p> + +<div class="example"><p><code> +UseCanonicalName Off<br /> +<br /> +LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon<br /> +<br /> +<Directory /www/commercial><br /> +<span class="indent"> + Options FollowSymLinks<br /> + AllowOverride All<br /> +</span> +</Directory><br /> +<br /> +<Directory /www/homepages><br /> +<span class="indent"> + Options FollowSymLinks<br /> + AllowOverride None<br /> +</span> +</Directory><br /> +<br /> +<VirtualHost 111.22.33.44><br /> +<span class="indent"> + ServerName www.commercial.isp.com<br /> + <br /> + CustomLog logs/access_log.commercial vcommon<br /> + <br /> + VirtualDocumentRoot /www/commercial/%0/docs<br /> + VirtualScriptAlias /www/commercial/%0/cgi-bin<br /> +</span> +</VirtualHost><br /> +<br /> +<VirtualHost 111.22.33.45><br /> +<span class="indent"> + ServerName www.homepages.isp.com<br /> + <br /> + CustomLog logs/access_log.homepages vcommon<br /> + <br /> + VirtualDocumentRoot /www/homepages/%0/docs<br /> + ScriptAlias /cgi-bin/ /www/std-cgi/<br /> +</span> +</VirtualHost> +</code></p></div> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="ipbased" id="ipbased">More efficient IP-based virtual hosting</a></h2> + + <p>After <a href="#simple">the first example</a> I noted that + it is easy to turn it into an IP-based virtual hosting setup. + Unfortunately that configuration is not very efficient because + it requires a DNS lookup for every request. This can be avoided + by laying out the filesystem according to the IP addresses + themselves rather than the corresponding names and changing the + logging similarly. Apache will then usually not need to work + out the server name and so incur a DNS lookup.</p> + +<div class="example"><p><code> +# get the server name from the reverse DNS of the IP address<br /> +UseCanonicalName DNS<br /> +<br /> +# include the IP address in the logs so they may be split<br /> +LogFormat "%A %h %l %u %t \"%r\" %s %b" vcommon<br /> +CustomLog logs/access_log vcommon<br /> +<br /> +# include the IP address in the filenames<br /> +VirtualDocumentRootIP /www/hosts/%0/docs<br /> +VirtualScriptAliasIP /www/hosts/%0/cgi-bin<br /> +</code></p></div> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="oldversion" id="oldversion">Using older versions of Apache</a></h2> + + <p>The examples above rely on <code>mod_vhost_alias</code> + which appeared after version 1.3.6. If you are using a version + of Apache without <code>mod_vhost_alias</code> then you can + implement this technique with <code>mod_rewrite</code> as + illustrated below, but only for Host:-header-based virtual + hosts.</p> + + <p>In addition there are some things to beware of with logging. + Apache 1.3.6 is the first version to include the + <code>%V</code> log format directive; in versions 1.3.0 - 1.3.3 + the <code>%v</code> option did what <code>%V</code> does; + version 1.3.4 has no equivalent. In all these versions of + Apache the <code>UseCanonicalName</code> directive can appear + in <code>.htaccess</code> files which means that customers can + cause the wrong thing to be logged. Therefore the best thing to + do is use the <code>%{Host}i</code> directive which logs the + <code>Host:</code> header directly; note that this may include + <code>:port</code> on the end which is not the case for + <code>%V</code>.</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="simple.rewrite" id="simple.rewrite">Simple dynamic + virtual hosts using <code>mod_rewrite</code></a></h2> + + <p>This extract from <code>httpd.conf</code> does the same + thing as <a href="#simple">the first example</a>. The first + half is very similar to the corresponding part above but with + some changes for backward compatibility and to make the + <code>mod_rewrite</code> part work properly; the second half + configures <code>mod_rewrite</code> to do the actual work.</p> + + <p>There are a couple of especially tricky bits: By default, + <code>mod_rewrite</code> runs before the other URI translation + modules (<code>mod_alias</code> etc.) so if they are used then + <code>mod_rewrite</code> must be configured to accommodate + them. Also, some magic must be performed to do a + per-dynamic-virtual-host equivalent of + <code>ScriptAlias</code>.</p> + +<div class="example"><p><code> +# get the server name from the Host: header<br /> +UseCanonicalName Off<br /> +<br /> +# splittable logs<br /> +LogFormat "%{Host}i %h %l %u %t \"%r\" %s %b" vcommon<br /> +CustomLog logs/access_log vcommon<br /> +<br /> +<Directory /www/hosts><br /> +<span class="indent"> + # ExecCGI is needed here because we can't force<br /> + # CGI execution in the way that ScriptAlias does<br /> + Options FollowSymLinks ExecCGI<br /> +</span> +</Directory><br /> +<br /> +# now for the hard bit<br /> +<br /> +RewriteEngine On<br /> +<br /> +# a ServerName derived from a Host: header may be any case at all<br /> +RewriteMap lowercase int:tolower<br /> +<br /> +## deal with normal documents first:<br /> +# allow Alias /icons/ to work - repeat for other aliases<br /> +RewriteCond %{REQUEST_URI} !^/icons/<br /> +# allow CGIs to work<br /> +RewriteCond %{REQUEST_URI} !^/cgi-bin/<br /> +# do the magic<br /> +RewriteRule ^/(.*)$ /www/hosts/${lowercase:%{SERVER_NAME}}/docs/$1<br /> +<br /> +## and now deal with CGIs - we have to force a MIME type<br /> +RewriteCond %{REQUEST_URI} ^/cgi-bin/<br /> +RewriteRule ^/(.*)$ /www/hosts/${lowercase:%{SERVER_NAME}}/cgi-bin/$1 [T=application/x-httpd-cgi]<br /> +<br /> +# that's it! +</code></p></div> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="homepages.rewrite" id="homepages.rewrite">A + homepages system using <code>mod_rewrite</code></a></h2> + + <p>This does the same thing as <a href="#homepages">the second + example</a>.</p> + +<div class="example"><p><code> +RewriteEngine on<br /> +<br /> +RewriteMap lowercase int:tolower<br /> +<br /> +# allow CGIs to work<br /> +RewriteCond %{REQUEST_URI} !^/cgi-bin/<br /> +<br /> +# check the hostname is right so that the RewriteRule works<br /> +RewriteCond ${lowercase:%{SERVER_NAME}} ^www\.[a-z-]+\.isp\.com$<br /> +<br /> +# concatenate the virtual host name onto the start of the URI<br /> +# the [C] means do the next rewrite on the result of this one<br /> +RewriteRule ^(.+) ${lowercase:%{SERVER_NAME}}$1 [C]<br /> +<br /> +# now create the real file name<br /> +RewriteRule ^www\.([a-z-]+)\.isp\.com/(.*) /home/$1/$2<br /> +<br /> +# define the global CGI directory<br /> +ScriptAlias /cgi-bin/ /www/std-cgi/ +</code></p></div> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="xtra-conf" id="xtra-conf">Using a separate virtual + host configuration file</a></h2> + + <p>This arrangement uses more advanced <code>mod_rewrite</code> + features to get the translation from virtual host to document + root from a separate configuration file. This provides more + flexibility but requires more complicated configuration.</p> + + <p>The <code>vhost.map</code> file contains something like + this:</p> + +<div class="example"><p><code> +www.customer-1.com /www/customers/1<br /> +www.customer-2.com /www/customers/2<br /> +# ...<br /> +www.customer-N.com /www/customers/N<br /> +</code></p></div> + + <p>The <code>http.conf</code> contains this:</p> + +<div class="example"><p><code> +RewriteEngine on<br /> +<br /> +RewriteMap lowercase int:tolower<br /> +<br /> +# define the map file<br /> +RewriteMap vhost txt:/www/conf/vhost.map<br /> +<br /> +# deal with aliases as above<br /> +RewriteCond %{REQUEST_URI} !^/icons/<br /> +RewriteCond %{REQUEST_URI} !^/cgi-bin/<br /> +RewriteCond ${lowercase:%{SERVER_NAME}} ^(.+)$<br /> +# this does the file-based remap<br /> +RewriteCond ${vhost:%1} ^(/.*)$<br /> +RewriteRule ^/(.*)$ %1/docs/$1<br /> +<br /> +RewriteCond %{REQUEST_URI} ^/cgi-bin/<br /> +RewriteCond ${lowercase:%{SERVER_NAME}} ^(.+)$<br /> +RewriteCond ${vhost:%1} ^(/.*)$<br /> +RewriteRule ^/(.*)$ %1/cgi-bin/$1 +</code></p></div> + +</div></div> +<div class="bottomlang"> +<p><span>Available Languages: </span><a href="../en/vhosts/mass.html" title="English"> en </a> | +<a href="../ko/vhosts/mass.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div> +</body></html>
\ No newline at end of file diff --git a/docs/manual/vhosts/mass.html.ko.euc-kr b/docs/manual/vhosts/mass.html.ko.euc-kr new file mode 100644 index 00000000..7bd83eb2 --- /dev/null +++ b/docs/manual/vhosts/mass.html.ko.euc-kr @@ -0,0 +1,423 @@ +<?xml version="1.0" encoding="EUC-KR"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>뷮 ȣƮ ϱ - Apache HTTP Server</title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/"></a> | <a href="../mod/directives.html">þ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html"></a> | <a href="../sitemap.html">Ʈ</a></p> +<p class="apache">Apache HTTP Server Version 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">ȣƮ</a></div><div id="page-content"><div id="preamble"><h1>뷮 ȣƮ ϱ</h1> +<div class="toplang"> +<p><span> : </span><a href="../en/vhosts/mass.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../ko/vhosts/mass.html" title="Korean"> ko </a></p> +</div> +<div class="outofdate"> ֽ ƴմϴ. + ֱٿ ϼ.</div> + + + <p> ġ 1.3 뷮 ȣƮ ȿ + ϴ Ѵ. + </p> + +</div> +<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#motivation"></a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#overview"></a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#simple"> ȣƮ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#homepages"> ȣƮϴ Ȩ ý</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#combinations"> ȣƮ + ý ϱ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#ipbased"> ȿ IP ȣƮ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#oldversion">ġ ϱ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#simple.rewrite"><code>mod_rewrite</code> + ȣƮ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#homepages.rewrite"><code>mod_rewrite</code> + Ȩ ý</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#xtra-conf"> ȣƮ + ϱ</a></li> +</ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="motivation" id="motivation"></a></h2> + + <p> <code>httpd.conf</code> + <code><VirtualHost></code> ǵ ִٸ ⼭ + ϴ ̴:</p> + +<div class="example"><p><code> +NameVirtualHost 111.22.33.44<br /> +<VirtualHost 111.22.33.44><br /> +<span class="indent"> + ServerName www.customer-1.com<br /> + DocumentRoot /www/hosts/www.customer-1.com/docs<br /> + ScriptAlias /cgi-bin/ /www/hosts/www.customer-1.com/cgi-bin<br /> +</span> +</VirtualHost><br /> +<VirtualHost 111.22.33.44><br /> +<span class="indent"> + ServerName www.customer-2.com<br /> + DocumentRoot /www/hosts/www.customer-2.com/docs<br /> + ScriptAlias /cgi-bin/ /www/hosts/www.customer-2.com/cgi-bin<br /> +</span> +</VirtualHost><br /> +# ٺ ٺ ٺ<br /> +<VirtualHost 111.22.33.44><br /> +<span class="indent"> + ServerName www.customer-N.com<br /> + DocumentRoot /www/hosts/www.customer-N.com/docs<br /> + ScriptAlias /cgi-bin/ /www/hosts/www.customer-N.com/cgi-bin<br /> +</span> +</VirtualHost> +</code></p></div> + + <p>⺻ <code><VirtualHost></code> + θ óϵ üϴ ̴. + ִ:</p> + + <ol> + <li> ۾ ġ ϰ + Ѵ.</li> + + <li>ȣƮ ߰ϱ Ͻýۿ + 丮 DNS ߰ϱ⸸ ϸȴ. , + ġ 缳ϰ ʿ䰡 .</li> + </ol> + + <p> ȣƮ ٸ α ٴ + ̴. ſ ȣƮ Ѵٸ ϱڸ + ٸ α . + fifo α , α óϿ + ( ִ) .</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="overview" id="overview"></a></h2> + + <p>ȣƮ IP ּҿ HTTP û <code>Host:</code> + Ѵ. ⺻ 뷮 + ȣƮ ڵ ȣƮ û + ϰο Ѵ. ̴ κ <code class="module"><a href="../mod/mod_vhost_alias.html">mod_vhost_alias</a></code> + Ͽ ذ , ġ 1.3.6 ϸ Ѵٸ + <code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code> ؾ Ѵ. + ⺻ Ե ʴ´. Ϸ + ġ ϰ Ҷ ؾ Ѵ.</p> + + <p> ȣƮ Ϲ ȣƮó ̰Ϸ + `ӿ' Ѵ. ߿ ġ ڱ + URL 鶧 ̴. + <code>ServerName</code> þ ϸ, CGI + <code>SERVER_NAME</code> ȯ溯 ־. + <code class="directive"><a href="../mod/core.html#usecanonicalname">UseCanonicalName</a></code> ȴ. + <code>UseCanonicalName Off</code≯ û <code>Host:</code> + ȴ. <code>UseCanonicalName DNS</code≯ + ȣƮ IP ּҸ DNS ˻Ͽ ˾Ƴ. + ڴ ̸ ȣƮ ϰ, ڴ IP + ȣƮ Ѵ. <code>Host:</code> ų + DNS ˻ Ͽ ġ ˾Ƴ ϸ + <code>ServerName</code> Ѵ.</p> + + <p>ٸ `' (<code>DocumentRoot</code> ϸ, + CGI <code>DOCUMENT_ROOT</code> ȯ溯 ־) + Ʈ̴. Ϲ core Ͽ + URI شϴ ϸ ã, ȣ Ҷ ٸ + (<code>mod_vhost_alias</code> <code>mod_rewrite</code>) + ٸ ̷ ۾ Ѵ. + <code>DOCUMENT_ROOT</code> ȯ溯 Ƿ + CGI SSI Ѵٸ ߸ + ִ.</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="simple" id="simple"> ȣƮ</a></h2> + + <p> <a href="#motivation"></a> ȣƮ + <code>mod_vhost_alias</code> Ͽ Ϲ + ߴ.</p> + +<div class="example"><p><code> +# Host: ˾Ƴ<br /> +UseCanonicalName Off<br /> +<br /> +# ù° ʵ带 Ͽ α ȣƮ ִ<br /> +LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon<br /> +CustomLog logs/access_log vcommon<br /> +<br /> +# û óϱ ϸ Ѵ<br /> +VirtualDocumentRoot /www/hosts/%0/docs<br /> +VirtualScriptAlias /www/hosts/%0/cgi-bin +</code></p></div> + + <p> <code>UseCanonicalName Off</code> + <code>UseCanonicalName DNS</code> ϱ⸸ ϸ IP + ȣƮ ȴ. ȣƮ IP ּҸ + ϸ ߰ ִ.</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="homepages" id="homepages"> ȣƮϴ Ȩ ý</a></h2> + + <p>ISP Ȩ ߴ. + ϸ <code>www.user.isp.com</code> + <code>/home/user/</code> δ Ϻθ + ϸ ִ. + <code>cgi-bin</code> ȣƮ ʰ + ȣƮ Ѵ.</p> + +<div class="example"><p><code> +# ⺻ . <br /> +<br /> +# ϸ Ϻθ Ѵ<br /> +VirtualDocumentRoot /www/hosts/%2/docs<br /> +<br /> +# ϳ cgi-bin 丮<br /> +ScriptAlias /cgi-bin/ /www/std-cgi/<br /> +</code></p></div> + + <p><code class="module"><a href="../mod/mod_vhost_alias.html">mod_vhost_alias</a></code> + <code>VirtualDocumentRoot</code> ִ.</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="combinations" id="combinations"> ȣƮ + ý ϱ</a></h2> + + <p> ġ Ϲ + <code><VirtualHost></code> þ Ͽ + ȣƮ ִ. , + Ȩ IP ּ Ѱ, + ٸ IP ּ Ѱ οѴ. ó + <code><VirtualHost></code> ǿ + ִ.</p> + +<div class="example"><p><code> +UseCanonicalName Off<br /> +<br /> +LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon<br /> +<br /> +<Directory /www/commercial><br /> +<span class="indent"> + Options FollowSymLinks<br /> + AllowOverride All<br /> +</span> +</Directory><br /> +<br /> +<Directory /www/homepages><br /> +<span class="indent"> + Options FollowSymLinks<br /> + AllowOverride None<br /> +</span> +</Directory><br /> +<br /> +<VirtualHost 111.22.33.44><br /> +<span class="indent"> + ServerName www.commercial.isp.com<br /> + <br /> + CustomLog logs/access_log.commercial vcommon<br /> + <br /> + VirtualDocumentRoot /www/commercial/%0/docs<br /> + VirtualScriptAlias /www/commercial/%0/cgi-bin<br /> +</span> +</VirtualHost><br /> +<br /> +<VirtualHost 111.22.33.45><br /> +<span class="indent"> + ServerName www.homepages.isp.com<br /> + <br /> + CustomLog logs/access_log.homepages vcommon<br /> + <br /> + VirtualDocumentRoot /www/homepages/%0/docs<br /> + ScriptAlias /cgi-bin/ /www/std-cgi/<br /> +</span> +</VirtualHost> +</code></p></div> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="ipbased" id="ipbased"> ȿ IP ȣƮ</a></h2> + + <p><a href="#simple">ù° </a> + IP ȣƮ ٲ ִٰ ߴ. + û DNS ãƾϹǷ ſ ȿ̴. + ̸ IP ּҷ Ͻý ϰ + α ϸ ذ ִ. ġ + ٷ ʿ䰡 , DNS ˻ ʰ ȴ.</p> + +<div class="example"><p><code> +# IP ּҸ DNS ˻Ͽ ˾Ƴ<br /> +UseCanonicalName DNS<br /> +<br /> +# α ֵ IP ּҸ Ѵ<br /> +LogFormat "%A %h %l %u %t \"%r\" %s %b" vcommon<br /> +CustomLog logs/access_log vcommon<br /> +<br /> +# ϸ IP ּҸ Ѵ<br /> +VirtualDocumentRootIP /www/hosts/%0/docs<br /> +VirtualScriptAliasIP /www/hosts/%0/cgi-bin<br /> +</code></p></div> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="oldversion" id="oldversion">ġ ϱ</a></h2> + + <p> ġ 1.3.6 Ŀ Ե + <code>mod_vhost_alias</code> Ѵ. + <code>mod_vhost_alias</code> ġ Ѵٸ + ̹ ߵ <code>mod_rewrite</code> Ͽ, + Host:- ȣƮ, ִ.</p> + + <p> α Ͽ ִ. ġ 1.3.6 + α þ <code>%V</code> ԵǾ, 1.3.0 + - 1.3.3 <code>%v</code> ɼ ߴ. + 1.3.4 ̷ . ġ + <code>.htaccess</code> Ͽ <code>UseCanonicalName</code> + þ Ƿ α ̻ ϵ ִ. + Ƿ <code>%{Host}i</code> þ + Ͽ <code>Host:</code> α ̴. + , <code>%V</code> ʴ <code>:port</code> + ڿ ߰ ִ.</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="simple.rewrite" id="simple.rewrite"><code>mod_rewrite</code> + ȣƮ</a></h2> + + <p> <a href="#simple">ù° </a> ϴ + <code>httpd.conf</code> ̴. ó ù° + , ȣȯ <code>mod_rewrite</code> + Ǿ. ۾ + ϴ <code>mod_rewrite</code> Ѵ.</p> + + <p>Ư ؾ ִ. ⺻ + <code>mod_rewrite</code> (<code>mod_alias</code> ) ٸ + URI ȴ. ٸ URI + Ͽ <code>mod_rewrite</code> ؾ Ѵ. + , ȣƮ <code>ScriptAlias</code> + ؼ Ư ۾ ʿϴ.</p> + +<div class="example"><p><code> +# Host: ´<br /> +UseCanonicalName Off<br /> +<br /> +# splittable logs<br /> +LogFormat "%{Host}i %h %l %u %t \"%r\" %s %b" vcommon<br /> +CustomLog logs/access_log vcommon<br /> +<br /> +<Directory /www/hosts><br /> +<span class="indent"> + # ScriptAlias CGI <br /> + # ExecCGI Ѵ<br /> + Options FollowSymLinks ExecCGI<br /> +</span> +</Directory><br /> +<br /> +# κ̴<br /> +<br /> +RewriteEngine On<br /> +<br /> +# Host: ҹڰ ڼ ִ<br /> +RewriteMap lowercase int:tolower<br /> +<br /> +## Ϲ óѴ:<br /> +# Alias /icons/ ϵ - ٸ alias ؼ ݺ<br /> +RewriteCond %{REQUEST_URI} !^/icons/<br /> +# CGI ϵ<br /> +RewriteCond %{REQUEST_URI} !^/cgi-bin/<br /> +# Ư ۾<br /> +RewriteRule ^/(.*)$ /www/hosts/${lowercase:%{SERVER_NAME}}/docs/$1<br /> +<br /> +## CGI óѴ - MIME type ؾ Ѵ<br /> +RewriteCond %{REQUEST_URI} ^/cgi-bin/<br /> +RewriteRule ^/(.*)$ /www/hosts/${lowercase:%{SERVER_NAME}}/cgi-bin/$1 [T=application/x-httpd-cgi]<br /> +<br /> +# ! +</code></p></div> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="homepages.rewrite" id="homepages.rewrite"><code>mod_rewrite</code> + Ȩ ý</a></h2> + + <p> <a href="#homepages">ι° </a> + Ѵ.</p> + +<div class="example"><p><code> +RewriteEngine on<br /> +<br /> +RewriteMap lowercase int:tolower<br /> +<br /> +# CGI ϵ<br /> +RewriteCond %{REQUEST_URI} !^/cgi-bin/<br /> +<br /> +# RewriteRule ϵ ȣƮ ùٸ ˻Ѵ<br /> +RewriteCond ${lowercase:%{SERVER_NAME}} ^www\.[a-z-]+\.isp\.com$<br /> +<br /> +# ȣƮ URI տ δ<br /> +# [C] ۼ Ѵ<br /> +RewriteRule ^(.+) ${lowercase:%{SERVER_NAME}}$1 [C]<br /> +<br /> +# ϸ <br /> +RewriteRule ^www\.([a-z-]+)\.isp\.com/(.*) /home/$1/$2<br /> +<br /> +# ü CGI 丮 Ѵ<br /> +ScriptAlias /cgi-bin/ /www/std-cgi/ +</code></p></div> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="xtra-conf" id="xtra-conf"> ȣƮ + ϱ</a></h2> + + <p> <code>mod_rewrite</code> Ͽ + ȣƮ Ʈ ˾Ƴ. + ʿϴ.</p> + + <p><code>vhost.map</code> :</p> + +<div class="example"><p><code> +www.customer-1.com /www/customers/1<br /> +www.customer-2.com /www/customers/2<br /> +# ...<br /> +www.customer-N.com /www/customers/N<br /> +</code></p></div> + + <p><code>http.conf</code> :</p> + +<div class="example"><p><code> +RewriteEngine on<br /> +<br /> +RewriteMap lowercase int:tolower<br /> +<br /> +# Ѵ<br /> +RewriteMap vhost txt:/www/conf/vhost.map<br /> +<br /> +# alias óѴ<br /> +RewriteCond %{REQUEST_URI} !^/icons/<br /> +RewriteCond %{REQUEST_URI} !^/cgi-bin/<br /> +RewriteCond ${lowercase:%{SERVER_NAME}} ^(.+)$<br /> +# ã´<br /> +RewriteCond ${vhost:%1} ^(/.*)$<br /> +RewriteRule ^/(.*)$ %1/docs/$1<br /> +<br /> +RewriteCond %{REQUEST_URI} ^/cgi-bin/<br /> +RewriteCond ${lowercase:%{SERVER_NAME}} ^(.+)$<br /> +RewriteCond ${vhost:%1} ^(/.*)$<br /> +RewriteRule ^/(.*)$ %1/cgi-bin/$1 +</code></p></div> + +</div></div> +<div class="bottomlang"> +<p><span> : </span><a href="../en/vhosts/mass.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../ko/vhosts/mass.html" title="Korean"> ko </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/"></a> | <a href="../mod/directives.html">þ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html"></a> | <a href="../sitemap.html">Ʈ</a></p></div> +</body></html>
\ No newline at end of file diff --git a/docs/manual/vhosts/name-based.html b/docs/manual/vhosts/name-based.html new file mode 100644 index 00000000..ceb5e666 --- /dev/null +++ b/docs/manual/vhosts/name-based.html @@ -0,0 +1,19 @@ +URI: name-based.html.de +Content-Language: de +Content-type: text/html; charset=ISO-8859-1 + +URI: name-based.html.en +Content-Language: en +Content-type: text/html; charset=ISO-8859-1 + +URI: name-based.html.fr +Content-Language: fr +Content-type: text/html; charset=ISO-8859-1 + +URI: name-based.html.ja.euc-jp +Content-Language: ja +Content-type: text/html; charset=EUC-JP + +URI: name-based.html.ko.euc-kr +Content-Language: ko +Content-type: text/html; charset=EUC-KR diff --git a/docs/manual/vhosts/name-based.html.de b/docs/manual/vhosts/name-based.html.de new file mode 100644 index 00000000..e4f8d2c6 --- /dev/null +++ b/docs/manual/vhosts/name-based.html.de @@ -0,0 +1,268 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>Untersttzung namensbasierter virtueller Hosts - Apache HTTP Server</title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/">Module</a> | <a href="../mod/directives.html">Direktiven</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossar</a> | <a href="../sitemap.html">Seitenindex</a></p> +<p class="apache">Apache HTTP Server Version 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP-Server</a> > <a href="http://httpd.apache.org/docs/">Dokumentation</a> > <a href="../">Version 2.2</a> > <a href="./">Virtual Hosts</a></div><div id="page-content"><div id="preamble"><h1>Untersttzung namensbasierter virtueller Hosts</h1> +<div class="toplang"> +<p><span>Verfgbare Sprachen: </span><a href="../de/vhosts/name-based.html" title="Deutsch"> de </a> | +<a href="../en/vhosts/name-based.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/name-based.html" hreflang="fr" rel="alternate" title="Franais"> fr </a> | +<a href="../ja/vhosts/name-based.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/name-based.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div> + + <p>Das Dokument beschreibt, wann und wie namensbasierte virtuelle Hosts zu + verwenden sind.</p> +</div> +<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#namevip">Namensbasierte gegenber IP-basierten + virtuellen Hosts</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#using">Die Verwendung von namensbasierten virtuellen Hosts</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#compat">Kompatibilitt mit lteren Browsern</a></li> +</ul><h3>Siehe auch</h3><ul class="seealso"><li><a href="ip-based.html">Untersttzung IP-basierter virtueller + Hosts</a></li><li><a href="details.html">Tiefergehende Errterung der Zuweisung + virtueller Hosts</a></li><li><a href="mass.html">Dynamisch konfiguriertes + Massen-Virtual-Hosting</a></li><li><a href="examples.html">Beispiele fr virtuelle Hosts in typischen + Installationen</a></li><li><a href="examples.html#serverpath">ServerPath-Beispielkonfiguration</a></li></ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="namevip" id="namevip">Namensbasierte gegenber IP-basierten + virtuellen Hosts</a></h2> + + <p>IP-basierte virtuelle Hosts verwenden die IP-Adresse der Verbindung, um den + korrekten virtuellen Host zur Bedienung einer Anfrage zu ermitteln. Folglich + bentigen Sie eine IP-Adresse fr jeden virtuellen Host. Bei der + Verwendung von namensbasierten virtuellen Hosts verlt sich der + Server darauf, dass der Client den Hostnamen als Bestandteil der HTTP-Header + angibt. Durch Anwendung dieser Technik knnen sich mehrere verschiedene + Hosts die gleiche IP-Adresse teilen.</p> + + <p>Die Verwendung von namensbasierten virtuellen Hosts ist gewhnlich + einfacher. Sie mssen lediglich Ihren DNS-Server darauf einstellen, + jeden Hostnamen auf die richtige IP-Adresse abzubilden, und dann den Apache + HTTP Server so konfigurieren, dass er die verschiedenen Hostnamen erkennt. + Namensbasierte virtuelle Hosts entschrfen auch den Bedarf an + knappen IP-Adressen. Daher sollten Sie namensbasierte virtuelle Hosts + verwenden, sofern kein besonderer Grund dafr existiert, IP-basierte + virtuelle Hosts zu whlen. Mgliche Grnde fr die + Verwendung IP-basierter virtueller Hosts sind:</p> + + <ul> + <li>Einige antike Clients sind nicht kompatibel zu namensbasierten + virtuellen Hosts. Damit namensbasierte virtuelle Hosts funktionieren, + muss der Client den HTTP-Host-Header senden. Dies ist bei HTTP/1.1 + vorgeschrieben und in allen modernen HTTP/1.0-Browsern als Erweiterung + implementiert. Wenn Sie Untersttzung fr veraltete Clients + bentigen und dennoch namensbasierte virtuelle Hosts verwenden, + dann finden Sie eine mgliche Lsung dafr am Ende des + Dokuments.</li> + + <li>Namensbasierte virtuelle Hosts knnen aufgrund der Natur des + SSL-Protokolls nicht mit SSL-gesicherten Servern verwendet werden.</li> + + <li>Einige Betriebssysteme und Netzwerkanlagen setzen Techniken zum + Bandbreiten-Management ein, die nicht zwischen Hosts unterscheiden + knnen, wenn diese nicht auf verschiedenen IP-Adressen liegen.</li> + </ul> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="using" id="using">Die Verwendung von namensbasierten virtuellen Hosts</a></h2> + + <table class="related"><tr><th>Referenzierte Module</th><th>Referenzierte Direktiven</th></tr><tr><td><ul><li><code class="module"><a href="../mod/core.html">core</a></code></li></ul></td><td><ul><li><code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code></li><li><code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code></li><li><code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code></li><li><code class="directive"><a href="../mod/core.html#servername">ServerName</a></code></li><li><code class="directive"><a href="../mod/core.html#serverpath">ServerPath</a></code></li><li><code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code></li></ul></td></tr></table> + + <p>Um namensbasierte virtuelle Hosts zu verwenden, mssen Sie die + IP-Adresse (und mglicherweise den Port) des Servers benennen, an + der Anfragen fr die Hosts entgegengenommen werden. Dies wird mit + der Direktive <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> + eingestellt. Im Normalfall, wenn alle IP-Adressen des Server verwendet + werden sollen, knnen Sie <code>*</code> als Argument fr + <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> verwenden. Wenn Sie + vorhaben, mehrere Ports zu nutzen (etwa wenn SSL luft), sollten + Sie dem Argument einen Port hinzufgen, wie zum Beispiel + <code>*:80</code>. Beachten Sie, + dass die Angabe einer IP-Adresse in einer <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code>-Anweisung den Server nicht + automatisch an dieser Adresse lauschen lt. Lesen Sie bitte "<a href="../bind.html">Bestimmen der vom Apache verwendeten Adressen und + Ports</a>" fr weitere Details. Zustzlich muss jede hier + angegebene IP-Adresse einer Netzwerkkarte des Servers zugeordnet sein.</p> + + <p>Der nchste Schritt ist die Erstellung eines <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code>-Blocks fr jeden einzelnen + Host, den Sie bedienen wollen. Das Argument der Direktive <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> sollte das gleiche + sein wie das Argument der <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code>-Anweisung (d.h. eine IP-Adresse + oder <code>*</code> fr alle Adressen). Innerhalb jedes <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code>-Blocks bentigen + Sie zumindestens eine <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code>-Anweisung, um zu bestimmen, welcher + Host bedient wird, und eine <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code>-Anweisung, um anzugeben, wo im + Dateisystem der Inhalt des Hosts abgelegt ist.</p> + + <div class="note"><h3>Der Hauptserver verschwindet</h3> + Wenn Sie virtuelle Hosts zu einem bestehenden Webserver hinzufgen, + mssen Sie auch einen <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code>-Block fr den bestehenden Host + <span class="transnote">(<em>Anm.d..:</em> und bisherigen Hauptserver)</span> erstellen. + Die <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code>- und + <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code>-Anweisungen zu diesem + virtuellen Host sollten die gleichen sein wie die globalen <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code>- und <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code>-Anweisungen. Fhren Sie diesen + virtuellen Host als erstes in der Konfigurationsdatei auf, so dass er als + Standard-Host fungiert. + </div> + + <p>Vorausgesetzt, Sie bedienen z.B. die Domain + <code>www.domain.tld</code> und mchten den virtuellen Host + <code>www.otherdomain.tld</code> hinzufgen, welcher auf + die gleiche IP-Adresse zeigt. Dann fgen Sie einfach Folgendes der + <code>httpd.conf</code> hinzu:</p> + + <div class="example"><p><code> + NameVirtualHost *:80<br /> + <br /> + <VirtualHost *:80><br /> + <span class="indent"> + ServerName www.domain.tld<br /> + ServerAlias domain.tld *.domain.tld<br /> + DocumentRoot /www/domain<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost *:80><br /> + <span class="indent">ServerName www.otherdomain.tld<br /> + DocumentRoot /www/otherdomain<br /> + </span> + </VirtualHost><br /> + </code></p></div> + + <p>Sie knnen anstelle des <code>*</code> bei den beiden Anweisungen + <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> und <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> alternativ eine + eindeutige IP-Adresse angeben. Das kann man beispielsweise machen, um + einige namensbasierte virtuelle Hosts auf einer IP-Adresse zu betreiben und + entweder IP-basierte oder ein anderes Set von namensbasierten virtuellen + Hosts auf einer anderen Adresse.</p> + + <p>Viele Server wollen unter mehr als einem Namen erreichbar sein. Die + Direktive <code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code>, die innerhalb + des <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code>-Abschnittes angegeben wird, + ermglicht dies. Zum Beispiel zeigt die <code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code>-Anweisung in dem ersten <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code>-Block oben an, dass die + aufgefhrten Namen alternative Namen sind, die man verwenden kann, um + das gleiche Webangebot zu erreichen:</p> + + <div class="example"><p><code> + ServerAlias domain.tld *.domain.tld + </code></p></div> + + <p>Anfragen fr alle Hosts der Domain <code>domain.tld</code> werden + von dem virtuellen Host <code>www.domain.tld</code> bedient. Die + Platzhalter <code>*</code> und <code>?</code> knnen anstelle + entsprechender Namen verwendet werden. Natrlich knnen Sie nicht + einfach Namen erfinden und diese bei <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code> oder <code>ServerAlias</code> + angeben, Sie mssen zunchst Ihren DNS Server entsprechend + konfigurieren, dass er diese Namen auf die mit Ihrem Server verknpfte + IP-Adresse abbildet.</p> + + <p>Und schluendlich knnen Sie die Konfiguration der virtuellen + Hosts mittels Angabe weiterer Direktiven innherhalb der <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code>-Container + feineinstellen. Die meisten Direktiven knnen in diesen Containern + angegeben werden und verndern dann ausschlielich die + Konfiguration des entsprechenden virtuellen Hosts. Prfen Sie den <a href="../mod/directive-dict.html#Context">Kontext</a> einer Direktive, um + herauszufinden, ob eine bestimmte Direktive zulssig ist. + Im <em>Hauptserver-Kontext</em> (auerhalb der <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code>-Container) definierte + Konfigurationsanweisungen werden nur dann angewendet, wenn sie nicht durch + Einstellungen des virtuellen Hosts auer Kraft gesetzt wurden.</p> + + <p>Wenn nun eine Anfrage eintrifft, prft der Server zuerst, ob sie eine + IP-Adresse verwendet, die der <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code>-Anweisung entspricht. Ist dies der + Fall, dann sieht er sich jeden <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code>-Abschnitt mit einer passenden + IP-Adresse an und versucht den einen zu finden, dessen <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code>- oder <code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code>-Anweisung mit dem gewnschten + Hostnamen bereinstimmt. Findet er einen, dann verwendet er die + Konfiguration dieses Servers. Wird kein passender virtueller Host gefunden, + dann wird <strong>der erste angegeben virtuelle Host</strong> verwendet, + dessen IP-Adresse pat.</p> + + <p>Die Folge davon ist, dass der erste aufgefhrte virtuelle Host der + <em>Standard</em>-Virtual-Host ist. Die <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code>-Anweisung des <em>Hauptservers</em> + wird <strong>niemals</strong> verwendet, wenn eine IP-Adresse mit einer + <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code>-Anweisung + bereinstimmt. Wenn Sie eine spezielle Konfiguration fr Anfragen + angeben mchten, die keinem bestimmten virtuellen Host entsprechen, + packen Sie diese Konfiguration einfach in einen <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code>-Container und fhren diesen als + erstes in der Konfigurationsdatei auf.</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="compat" id="compat">Kompatibilitt mit lteren Browsern</a></h2> + + <p>Wie zuvor erwhnt gibt es einige Clients, die nicht die notwendigen + Daten senden, mit denen namensbasierte virtuelle Hosts korrekt + funktionieren. Diesen Clients werden stets die Seiten des ersten, fr + diese IP-Adresse aufgefhrten virtuellen Hosts gesendet werden (des + <cite>primren</cite> namensbasierten virtuellen Hosts).</p> + + <div class="note"><h3>Was bedeutet lter?</h3> + <p>Beachten Sie bitte, wenn wir von lter sprechen, meinen wir auch + lter. Es ist sehr unwahrscheinlich, dass sie einen dieser Browser + heutzutage in Verwendung finden werden. Alle aktuellen Browser-Versionen + senden den <code>Host</code>-Header, so wie er fr namensbasierte + virtuelle Hosts bentigt wird.</p> + </div> + + <p>Mit der Direktive <code class="directive"><a href="../mod/core.html#serverpath">ServerPath</a></code> existiert + eine mgliche Behelfskonstruktion, obgleich sie etwas schwerfllig + ist:</p> + + <p>Beispielkonfiguration:</p> + + <div class="example"><p><code> + NameVirtualHost 111.22.33.44<br /> + <br /> + <VirtualHost 111.22.33.44><br /> + <span class="indent"> + ServerName www.domain.tld<br /> + ServerPath /domain<br /> + DocumentRoot /web/domain<br /> + </span> + </VirtualHost><br /> + </code></p></div> + + <p>Was bedeutet das? Es bedeutet, dass eine Anfrage fr eine mit + "<code>/domain</code>" beginnende URI von dem virtuellen Host + <code>www.domain.tld</code> bedient wird. Dies heit, dass die Seiten + fr alle Clients unter <code>http://www.domain.tld/domain/</code> + abrufbar sind, wenngleich Clients, die den Header <code>Host:</code> + senden, auch ber <code>http://www.domain.tld/</code> auf sie zugreifen + knnen.</p> + + <p>Legen Sie einen Link auf der Seite Ihres primren virtuellen Hosts zu + <code>http://www.domain.tld/domain/</code>, um die Behelfslsung + verfgbar zu machen. Bei den Seiten der virtuellen Hosts mssen + Sie dann sicherstellen, entweder auschlielich relative Links + (<em>z.B.</em> "<code>file.html</code>" oder + "<code>../icons/image.gif</code>") zu verwenden oder Links, die das + einleitende <code>/domain/</code> enthalten (<em>z.B.</em>, + "<code>http://www.domain.tld/domain/misc/file.html</code>" oder + "<code>/domain/misc/file.html</code>").</p> + + <p>Dies erfordert etwas Disziplin, die Befolgung dieser Richtlinien stellt + jedoch grtenteils sicher, dass Ihre Seiten mit allen Browsern + funktionieren, alten wie neuen.</p> + +</div></div> +<div class="bottomlang"> +<p><span>Verfgbare Sprachen: </span><a href="../de/vhosts/name-based.html" title="Deutsch"> de </a> | +<a href="../en/vhosts/name-based.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/name-based.html" hreflang="fr" rel="alternate" title="Franais"> fr </a> | +<a href="../ja/vhosts/name-based.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/name-based.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Lizenziert unter der <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/">Module</a> | <a href="../mod/directives.html">Direktiven</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossar</a> | <a href="../sitemap.html">Seitenindex</a></p></div> +</body></html>
\ No newline at end of file diff --git a/docs/manual/vhosts/name-based.html.en b/docs/manual/vhosts/name-based.html.en new file mode 100644 index 00000000..a520df33 --- /dev/null +++ b/docs/manual/vhosts/name-based.html.en @@ -0,0 +1,246 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>Name-based Virtual Host Support - Apache HTTP Server</title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p> +<p class="apache">Apache HTTP Server Version 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">Virtual Hosts</a></div><div id="page-content"><div id="preamble"><h1>Name-based Virtual Host Support</h1> +<div class="toplang"> +<p><span>Available Languages: </span><a href="../de/vhosts/name-based.html" hreflang="de" rel="alternate" title="Deutsch"> de </a> | +<a href="../en/vhosts/name-based.html" title="English"> en </a> | +<a href="../fr/vhosts/name-based.html" hreflang="fr" rel="alternate" title="Franais"> fr </a> | +<a href="../ja/vhosts/name-based.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/name-based.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div> + + <p>This document describes when and how to use name-based virtual hosts.</p> +</div> +<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#namevip">Name-based vs. IP-based Virtual Hosts</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#using">Using Name-based Virtual Hosts</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#compat">Compatibility with Older Browsers</a></li> +</ul><h3>See also</h3><ul class="seealso"><li><a href="ip-based.html">IP-based Virtual Host Support</a></li><li><a href="details.html">An In-Depth Discussion of Virtual Host Matching</a></li><li><a href="mass.html">Dynamically configured mass virtual hosting</a></li><li><a href="examples.html">Virtual Host examples for common setups</a></li><li><a href="examples.html#serverpath">ServerPath configuration example</a></li></ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="namevip" id="namevip">Name-based vs. IP-based Virtual Hosts</a></h2> + + <p>IP-based virtual hosts use the IP address of the connection to + determine the correct virtual host to serve. Therefore you need to + have a separate IP address for each host. With name-based virtual + hosting, the server relies on the client to report the hostname as + part of the HTTP headers. Using this technique, many different hosts + can share the same IP address.</p> + + <p>Name-based virtual hosting is usually simpler, since you need + only configure your DNS server to map each hostname to the correct + IP address and then configure the Apache HTTP Server to recognize + the different hostnames. Name-based virtual hosting also eases + the demand for scarce IP addresses. Therefore you should use + name-based virtual hosting unless there is a specific reason to + choose IP-based virtual hosting. Some reasons why you might consider + using IP-based virtual hosting:</p> + + <ul> + <li>Some ancient clients are not compatible with name-based virtual + hosting. For name-based virtual hosting to work, the client must send + the HTTP Host header. This is required by HTTP/1.1, and is + implemented by all modern HTTP/1.0 browsers as an extension. If you + need to support obsolete clients and still use name-based virtual + hosting, a possible technique is discussed at the end of this + document.</li> + + <li>Name-based virtual hosting cannot be used with SSL secure servers + because of the nature of the SSL protocol.</li> + + <li>Some operating systems and network equipment implement bandwidth + management techniques that cannot differentiate between hosts unless + they are on separate IP addresses.</li> + </ul> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="using" id="using">Using Name-based Virtual Hosts</a></h2> + +<table class="related"><tr><th>Related Modules</th><th>Related Directives</th></tr><tr><td><ul><li><code class="module"><a href="../mod/core.html">core</a></code></li></ul></td><td><ul><li><code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code></li><li><code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code></li><li><code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code></li><li><code class="directive"><a href="../mod/core.html#servername">ServerName</a></code></li><li><code class="directive"><a href="../mod/core.html#serverpath">ServerPath</a></code></li><li><code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code></li></ul></td></tr></table> + + <p>To use name-based virtual hosting, you must designate the IP + address (and possibly port) on the server that will be accepting + requests for the hosts. This is configured using the <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> directive. + In the normal case where any and all IP addresses on the server should + be used, you can use <code>*</code> as the argument to <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code>. If you're planning to use + multiple ports (e.g. running SSL) you should add a Port to the argument, + such as <code>*:80</code>. Note that mentioning an IP address in a + <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> directive does not + automatically make the server listen to that IP address. See + <a href="../bind.html">Setting which addresses and ports Apache uses</a> + for more details. In addition, any IP address specified here must be + associated with a network interface on the server.</p> + + <p>The next step is to create a <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> block for + each different host that you would like to serve. The argument to the + <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> directive + should be the same as the argument to the <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> directive (ie, an IP address, + or <code>*</code> for all addresses). Inside each <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> block, you will need at minimum a + <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code> directive to designate + which host is served and a <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code> + directive to show where in the filesystem the content for that host + lives.</p> + + <div class="note"><h3>Main host goes away</h3> + <p>If you are adding virtual hosts to an existing web server, you + must also create a <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> block for the existing host. The <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code> and <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code> included in this virtual host should be the + same as the global <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code> and + <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code>. List this virtual + host first in the configuration file so that it will act as the default + host.</p> + </div> + + <p>For example, suppose that you are serving the domain + <code>www.domain.tld</code> and you wish to add the virtual host + <code>www.otherdomain.tld</code>, which points at the same IP address. + Then you simply add the following to <code>httpd.conf</code>:</p> + + <div class="example"><p><code> + NameVirtualHost *:80<br /> + <br /> + <VirtualHost *:80><br /> + <span class="indent"> + ServerName www.domain.tld<br /> + ServerAlias domain.tld *.domain.tld<br /> + DocumentRoot /www/domain<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost *:80><br /> + <span class="indent">ServerName www.otherdomain.tld<br /> + DocumentRoot /www/otherdomain<br /> + </span> + </VirtualHost><br /> + </code></p></div> + + <p>You can alternatively specify an explicit IP address in place of the + <code>*</code> in both the <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> and <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> directives. For example, you might want to do this + in order to run some name-based virtual hosts on one IP address, and either + IP-based, or another set of name-based virtual hosts on another address.</p> + + <p>Many servers want to be accessible by more than one name. This is + possible with the <code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code> + directive, placed inside the <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> section. For example in the first <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> block above, the + <code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code> directive indicates that + the listed names are other names which people can use to see that same + web site:</p> + + <div class="example"><p><code> + ServerAlias domain.tld *.domain.tld + </code></p></div> + + <p>then requests for all hosts in the <code>domain.tld</code> domain will + be served by the <code>www.domain.tld</code> virtual host. The wildcard + characters <code>*</code> and <code>?</code> can be used to match names. + Of course, you can't just make up names and place them in <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code> or <code>ServerAlias</code>. You must + first have your DNS server properly configured to map those names to an IP + address associated with your server.</p> + + <p>Finally, you can fine-tune the configuration of the virtual hosts + by placing other directives inside the <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> containers. Most directives can be + placed in these containers and will then change the configuration only of + the relevant virtual host. To find out if a particular directive is allowed, + check the <a href="../mod/directive-dict.html#Context">Context</a> of the + directive. Configuration directives set in the <em>main server context</em> + (outside any <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> + container) will be used only if they are not overridden by the virtual host + settings.</p> + + <p>Now when a request arrives, the server will first check if it is using + an IP address that matches the <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code>. If it is, then it will look at each <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> section with a matching + IP address and try to find one where the <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code> or <code>ServerAlias</code> matches the requested + hostname. If it finds one, then it uses the configuration for that server. + If no matching virtual host is found, then <strong>the first listed virtual + host</strong> that matches the IP address will be used.</p> + + <p>As a consequence, the first listed virtual host is the <em>default</em> + virtual host. The <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code> from + the <em>main server</em> will <strong>never</strong> be used when an IP + address matches the <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> + directive. If you would like to have a special configuration for requests + that do not match any particular virtual host, simply put that configuration + in a <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> + container and list it first in the configuration file.</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="compat" id="compat">Compatibility with Older Browsers</a></h2> + + <p>As mentioned earlier, there are some clients + who do not send the required data for the name-based virtual + hosts to work properly. These clients will always be sent the + pages from the first virtual host listed for that IP address + (the <cite>primary</cite> name-based virtual host).</p> + + <div class="note"><h3>How much older?</h3> + <p>Please note that when we say older, we really do mean older. You are + very unlikely to encounter one of these browsers in use today. All + current versions of any browser send the <code>Host</code> header as + required for name-based virtual hosts.</p> + </div> + + <p>There is a possible workaround with the <code class="directive"><a href="../mod/core.html#serverpath">ServerPath</a></code> + directive, albeit a slightly cumbersome one:</p> + + <p>Example configuration:</p> + + <div class="example"><p><code> + NameVirtualHost 111.22.33.44<br /> + <br /> + <VirtualHost 111.22.33.44><br /> + <span class="indent"> + ServerName www.domain.tld<br /> + ServerPath /domain<br /> + DocumentRoot /web/domain<br /> + </span> + </VirtualHost><br /> + </code></p></div> + + <p>What does this mean? It means that a request for any URI + beginning with "<code>/domain</code>" will be served from the + virtual host <code>www.domain.tld</code>. This means that the + pages can be accessed as <code>http://www.domain.tld/domain/</code> + for all clients, although clients sending a <code>Host:</code> header + can also access it as <code>http://www.domain.tld/</code>.</p> + + <p>In order to make this work, put a link on your primary + virtual host's page to + <code>http://www.domain.tld/domain/</code>. Then, in the virtual + host's pages, be sure to use either purely relative links + (<em>e.g.</em>, "<code>file.html</code>" or + "<code>../icons/image.gif</code>") or links containing the + prefacing <code>/domain/</code> (<em>e.g.</em>, + "<code>http://www.domain.tld/domain/misc/file.html</code>" or + "<code>/domain/misc/file.html</code>").</p> + + <p>This requires a bit of discipline, but adherence to these + guidelines will, for the most part, ensure that your pages will + work with all browsers, new and old.</p> + +</div></div> +<div class="bottomlang"> +<p><span>Available Languages: </span><a href="../de/vhosts/name-based.html" hreflang="de" rel="alternate" title="Deutsch"> de </a> | +<a href="../en/vhosts/name-based.html" title="English"> en </a> | +<a href="../fr/vhosts/name-based.html" hreflang="fr" rel="alternate" title="Franais"> fr </a> | +<a href="../ja/vhosts/name-based.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/name-based.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div> +</body></html>
\ No newline at end of file diff --git a/docs/manual/vhosts/name-based.html.fr b/docs/manual/vhosts/name-based.html.fr new file mode 100644 index 00000000..ea41781a --- /dev/null +++ b/docs/manual/vhosts/name-based.html.fr @@ -0,0 +1,298 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>Support Apache des serveurs virtuels par nom - Serveur Apache HTTP</title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossaire</a> | <a href="../sitemap.html">Plan du site</a></p> +<p class="apache">Serveur Apache HTTP Version 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">Serveur HTTP</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">Serveurs virtuels</a></div><div id="page-content"><div id="preamble"><h1>Support Apache des serveurs virtuels par nom</h1> +<div class="toplang"> +<p><span>Langues Disponibles: </span><a href="../de/vhosts/name-based.html" hreflang="de" rel="alternate" title="Deutsch"> de </a> | +<a href="../en/vhosts/name-based.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/name-based.html" title="Franais"> fr </a> | +<a href="../ja/vhosts/name-based.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/name-based.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div> + + <p>Ce document dcrit quand et comment utiliser des serveurs + virtuels par nom.</p> +</div> +<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#namevip">Serveurs virtuels par nom vs. par IP</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#using">Utilisation de serveurs virtuels par nom</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#compat">Compatibilit avec les navigateurs anciens</a></li> +</ul><h3>Voir aussi</h3><ul class="seealso"><li><a href="ip-based.html">Support Apache des serveurs virtuels par IP</a></li><li><a href="details.html">Dtails sur le fonctionnement des serveurs virtuels</a></li><li><a href="mass.html">Configuration dynamique des hbergements virtuels de masse</a></li><li><a href="examples.html">Exemples d'utilisations de VirtualHost</a></li><li><a href="examples.html#serverpath">Utilisation de la directive ServerPath</a></li></ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="namevip" id="namevip">Serveurs virtuels par nom vs. par IP</a></h2> + + <p>Les hbergements virtuels par IP utilisent l'adresse IP + de la connexion afin de dterminer quel serveur virtuel doit + rpondre. Par consquent, vous devez disposer d'adresses IP + diffrentes pour chaque nom de domaine complet (FQDN) que vous hbergez. + Avec un hbergement + virtuel par nom, le serveur s'appuit sur les informations + transmises par le client dans les en-ttes HTTP de ses requtes. + La technique prsente ici vous permet de disposer de serveurs + virtuels diffrents partags sur une mme adresse IP.</p> + + <p>L'hbergement virtuel par nom est habituellement plus simple, + car il vous suffit de configurer votre serveur DNS pour que + chaque domaine pointe sur l'adresse IP dont vous disposez, et de + configurer votre serveur Apache HTTP afin qu'il reconnaisse + ces domaines. Il rduit aussi la pnurie en adresses IP. Par + consquent, vous devriez utiliser l'hbergement virtuel par + nom moins d'avoir une raison spcifique de prfrer + l'hbergement virtuel par IP. Certaines de ces raisons vous + sont exposes ci-aprs :</p> + + <ul> + <li>Certains anciens navigateurs ne sont pas compatibles + avec les serveurs virtuels par nom, car pour fonctionner, + un client doit transmettre un champ d'en-tte HTTP Host. + Cet en-tte est exig pour HTTP/1.1, et peut tre implment + sur des navigateurs modernes HTTP/1.0 grce une extension. + Si vous devez maintenir des clients obsoltes tout en + utilisant l'hbergement virtuel par nom, il existe une + technique qui est traite la fin de ce document.</li> + + <li>L'hbergement virtuel par nom ne peut pas tre utilis + avec des serveurs scuriss SSL cause de la nature mme + du protocole SSL.</li> + + <li>Certains systmes d'exploitation et quipements rseaux + emploient des techniques de gestion de la bande passante + qui ne peuvent pas diffrencier des domaines autrement que + par des adresses IP spares.</li> + </ul> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="using" id="using">Utilisation de serveurs virtuels par nom</a></h2> + +<table class="related"><tr><th>Modules Apparents</th><th>Directives Apparentes</th></tr><tr><td><ul><li><code class="module"><a href="../mod/core.html">core</a></code></li></ul></td><td><ul><li><code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code></li><li><code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code></li><li><code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code></li><li><code class="directive"><a href="../mod/core.html#servername">ServerName</a></code></li><li><code class="directive"><a href="../mod/core.html#serverpath">ServerPath</a></code></li><li><code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code></li></ul></td></tr></table> + + <p>Pour utiliser des serveurs virtuels par nom, vous devez + dsigner l'adresse IP (et si possible le port) sur le serveur + devant accepter les requtes pour des domaines. Cette + configuration utilise la directive + <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code>. Dans un + cas normal o n'importe quelle adresse IP peut tre utilise, + vous pouvez ajouter <code>*</code> comme argument de la directive + <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code>. Si vous + prvoyez d'utiliser de multiples ports (comme l'emploi de SSL), + vous devriez ajouter le port cet argument tel que + <code>*:80</code>. Notez que la simple mention d'une adresse + IP dans une directive + <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> ne suffit + pas faire couter le serveur sur cette IP. Consultez + <a href="../bind.html">la page sur les liaisons</a> pour plus + de dtails. Par ailleurs, chaque adresse IP spcifie ici doit + tre associe avec une interface rseau sur le serveur.</p> + + <p>L'tape suivante est la cration d'une section + <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> + pour chacun des serveurs crer. L'argument de la directive + <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> + doit tre le mme que celui de la directive + <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> + (c'est--dire l'adresse IP ou <code>*</code> pour toutes les + adresses). Dans chaque section + <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code>, + vous devez dfinir au minimum une directive + <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code> pour dsigner + le serveur concern et une directive + <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code> pour prciser + l'emplacement sur le systme de fichiers du contenu de ce serveur.</p> + + <div class="note"><h3>Le serveur principal disparat</h3> + <p>Si vous ajoutez des serveurs virtuels un serveur Web + existant, vous devez galement crer une section + <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> + redfinissant ce serveur existant. Les directives + <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code> et + <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code> incluses + dans ce serveur virtuel doivent tre les mmes que pour + les directives globales + <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code> et + <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code>. Positionnez + ce serveur virtuel en premier dans le fichier de configuration + pour en faire le serveur par dfaut.</p> + </div> + + <p>Par exemple, supposez que vous hbergez le domaine + <code>www.domain.tld</code> et que vous souhaitez ajouter le + serveur virtuel <code>www.otherdomain.tld</code> qui pointe sur + la mme adresse IP. Il vous suffit d'ajouter la configuration + suivante <code>httpd.conf</code> :</p> + + <div class="example"><p><code> + NameVirtualHost *:80<br /> + <br /> + <VirtualHost *:80><br /> + <span class="indent"> + ServerName www.domain.tld<br /> + ServerAlias domain.tld *.domain.tld<br /> + DocumentRoot /www/domain<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost *:80><br /> + <span class="indent">ServerName www.otherdomain.tld<br /> + DocumentRoot /www/otherdomain<br /> + </span> + </VirtualHost><br /> + </code></p></div> + + <p>Autrement, vous pouvez spcifiez une adresse IP explicite + la place de <code>*</code> dans les deux directives + <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> et + <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code>. + Par exemple, cette mthode est utile si vous souhaitez faire + tourner quelques serveurs virtuels par nom sur une mme adresse + IP, et d'autres, soit par IP, soit bass sur un autre jeu de + serveurs virtuels par nom sur une autre adresse IP.</p> + + <p>Plusieurs serveurs sont accessibles par plus d'un nom. Il + suffit de placer la directive + <code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code> dans une section + <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code>. + Par exemple, dans la premire section + <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> + ci-dessus, la directive <code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code> + indique aux utilisateurs les autres noms permis pour accder au + mme site Web :</p> + + <div class="example"><p><code> + ServerAlias domain.tld *.domain.tld + </code></p></div> + + <p>ainsi, toutes les requtes portant sur un domaine + <code>domain.tld</code> seront servies par le serveur virtuel + <code>www.domain.tld</code>. Les caractres joker <code>*</code> + et <code>?</code> peuvent tre utiliss pour les correspondances. + Bien entendu, vous ne pouvez pas inventer des noms et les placer + dans une directive <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code> + ou <code>ServerAlias</code>. Tout d'abord, votre serveur DNS + doit tre correctement configur pour lier ces noms une + adresse IP associe avec votre serveur.</p> + + <p>Finalement, vous pouvez affiner la configuration des serveurs + virtuels en plaant d'autres directives l'intrieur des sections + <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code>. + La plupart des directives peut tre place dans ces sections en + y changeant seulement la configuration du serveur virtuel associ. + Pour dterminer si une directive particulire est permise, + consultez <a href="../mod/directive-dict.html#Context">la page de + contexte</a>. Le jeu de directives configures dans le contexte + du <em>serveur principal</em> (en dehors de toutes sections + <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code>) + sera utilis seulement s'il n'y a pas de configuration contraire + par un serveur virtuel.</p> + + <p>Maintenant, lorsqu'une requte arrive, le serveur va d'abord + tester si elle utilise une adresse IP qui correspond + <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code>. Si c'est + le cas, il regardera chaque section + <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> + avec l'adresse correspondante et essaiera d'en trouver une o + le nom de domaine requis correspond + <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code> ou + <code>ServerAlias</code>. S'il en trouve une, il utilisera + sa configuration pour le serveur. Si aucun serveur virtuel ne + correspond, alors <em>le premier serveur virtuel list</em> + dont l'adresse IP correspond sera employ.</p> + + <p>En consquence, le premier serveur virtuel list est le + serveur virtuel <em>default</em>. La directive + <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code> du + <em>serveur principal</em> <strong>ne</strong> sera + <strong>jamais</strong> employe lorsqu'une adresse IP + correspond dans une directive + <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code>. Si vous + ne voulez pas avoir de configuration spciale pour les requtes + qui ne sont pas attaches un serveur virtuel en particulier, + mettez cette configuration dans une section + <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> + que vous placerez en premier dans le fichier de configuration.</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="compat" id="compat">Compatibilit avec les navigateurs anciens</a></h2> + + <p>Comme mentionn plus tt, certains clients ne transmettent + pas les donnes ncessaires pour le bon fonctionnement des + serveurs virtuels. Ces clients recevront toujours les pages + du premier serveur virtuel list pour cette adresse IP (le + serveur virtuel par nom <cite>primaire</cite>).</p> + + <div class="note"><h3>De combien plus anciens ?</h3> + <p>Veuillez noter que quand nous disons plus anciens, nous + disons vraiment plus anciens. Vous seriez malchanceux de rencontrer + de tels navigateurs encore utiliss de nos jours. Toutes les + versions actuelles des navigateurs transmettent leur en-tte + <code>Host</code> comme exig par les serveurs virtuels par nom.</p> + </div> + + <p>Il existe une solution avec la directive + <code class="directive"><a href="../mod/core.html#serverpath">ServerPath</a></code>, bien que + lgrement complexe :</p> + + <p>Exemple de configuration :</p> + + <div class="example"><p><code> + NameVirtualHost 111.22.33.44<br /> + <br /> + <VirtualHost 111.22.33.44><br /> + <span class="indent"> + ServerName www.domain.tld<br /> + ServerPath /domain<br /> + DocumentRoot /web/domain<br /> + </span> + </VirtualHost><br /> + </code></p></div> + + <p>Qu'est-ce que cela signifie ? Il signifie qu'une requte + pour tout URI qui commence par "<code>/domain</code>" sera + servie par le serveur virtuel <code>www.domain.tld</code>. + Ainsi, les pages sont accessibles + <code>http://www.domain.tld/domain/</code> pour tous les + clients, bien que ceux qui transmettent un en-tte + <code>Host:</code> peuvent galement y accder + <code>http://www.domain.tld/</code>.</p> + + <p>Pour rendre cette technique fonctionnelle, mettez un lien + dans votre serveur virtuel primaire vers + <code>http://www.domain.tld/domain/</code>. Ensuite, dans les + pages de ce serveur virtuel, assurez vous ne n'utiliser que + des liens relatifs (<em>par exemple</em>, "<code>file.html</code>" + ou "<code>../icons/image.gif</code>") ou des liens contenant + le prfixe <code>/domain/</code> (<em>par exemple</em>, + "<code>http://www.domain.tld/domain/misc/file.html</code>" + ou "<code>/domain/misc/file.html</code>").</p> + + <p>Cela requiert un peu de discipline, mais si vous suivez + cette ligne de conduite, vous serez assur que vos pages + s'afficheront dans tous les navigateurs, nouveaux et anciens.</p> + +</div></div> +<div class="bottomlang"> +<p><span>Langues Disponibles: </span><a href="../de/vhosts/name-based.html" hreflang="de" rel="alternate" title="Deutsch"> de </a> | +<a href="../en/vhosts/name-based.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/name-based.html" title="Franais"> fr </a> | +<a href="../ja/vhosts/name-based.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/name-based.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Authoris sous <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossaire</a> | <a href="../sitemap.html">Plan du site</a></p></div> +</body></html>
\ No newline at end of file diff --git a/docs/manual/vhosts/name-based.html.ja.euc-jp b/docs/manual/vhosts/name-based.html.ja.euc-jp new file mode 100644 index 00000000..1bb94f38 --- /dev/null +++ b/docs/manual/vhosts/name-based.html.ja.euc-jp @@ -0,0 +1,271 @@ +<?xml version="1.0" encoding="EUC-JP"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>̾١ΥСۥ - Apache HTTP </title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/">⥸塼</a> | <a href="../mod/directives.html">ǥ쥯ƥ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Ѹ</a> | <a href="../sitemap.html">ȥޥå</a></p> +<p class="apache">Apache HTTP С 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP </a> > <a href="http://httpd.apache.org/docs/">ɥơ</a> > <a href="../">С 2.2</a> > <a href="./">Сۥ</a></div><div id="page-content"><div id="preamble"><h1>̾١ΥСۥ</h1> +<div class="toplang"> +<p><span>Available Languages: </span><a href="../de/vhosts/name-based.html" hreflang="de" rel="alternate" title="Deutsch"> de </a> | +<a href="../en/vhosts/name-based.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/name-based.html" hreflang="fr" rel="alternate" title="Franais"> fr </a> | +<a href="../ja/vhosts/name-based.html" title="Japanese"> ja </a> | +<a href="../ko/vhosts/name-based.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div> + + <p>ʸǤ̾١ΥСۥȤɤʤȤ + ɤäƻȤޤ</p> +</div> +<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#namevip">̾١ IP ١ΥСۥȤ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#using">̾١ΥСۥȤѤ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#compat">Ť֥饦Ȥθߴ</a></li> +</ul><h3></h3><ul class="seealso"><li><a href="ip-based.html">͡١ΥСۥ</a></li><li><a href="details.html">СۥȤΥޥåˤĤƤξܺ</a></li><li><a href="mass.html">̤ΥСۥȤưŪ</a></li><li><a href="examples.html">СۥȤΰŪ</a></li><li><a href="examples.html#serverpath">ServerPath </a></li></ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="namevip" id="namevip">̾١ IP ١ΥСۥȤ</a></h2> + + <p>IP ١ΥСۥȤǤϡ + СۥȤؤΥͥꤹ뤿 IP + ɥ쥹ѤޤǤ顢줾ΥۥȤ˸ġ IP + ɥ쥹ɬפˤʤޤФ̾١ΥСۥȤǤϡ + 饤Ȥ HTTP إåΰȤƥۥ̾𤲤롢 + ȤȤ˰¸ޤεѤƱ IP + ɥ쥹ۤʤ¿ΥۥȤǶͭƤޤ</p> + + <p>̾١ΥСۥȤ̾ñǡ줾Υۥ̾ + бΤ IP ɥ쥹 DNS ꤷۤʤ + ۥ̤̾褦 Apache HTTP ФꤹǤ + ˡ̾١ΥСۥȤ IP + ɥ쥹μפ¤ޤäơIP ١ΥСۥȤ + ٤ͳʤ̾١ΥСۥȤȤ٤Ǥ + IP ١ΥСۥȤѤ뤳ȤθͳȤơ</p> + + <ul> + <li>̾١ΥСۥȤбƤʤŤ饤Ȥ + ̾١ΥСۥȤƯˤϡ饤Ȥ + HTTP ۥȥإåäƤʤФʤޤ + HTTP/1.1 λͤᤵƤơ٤ƤθŪ + HTTP/1.0 ֥饦ǤĥȤƼƤޤ + ȤƤŤ饤ȤݡȤĤġ̾١ + СۥȤԤϡʸκǸ + Ƥˤʤ뤫⤷ʤˡƤ</li> + + <li>̾١ΥСۥȤ SSL ץȥħˤꡢ + SSL 奢ФˤϻȤޤ</li> + + <li>ڥ졼ƥƥͥåȥ֤Τʤˤϡ + ̤ IP ɥ쥹Ǥʤ硢ʣΥۥȤ̰Ǥʤ褦 + ӰˡƤΤޤ</li> + </ul> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="using" id="using">̾١ΥСۥȤѤ</a></h2> + +<table class="related"><tr><th>Ϣ⥸塼</th><th>Ϣǥ쥯ƥ</th></tr><tr><td><ul><li><code class="module"><a href="../mod/core.html">core</a></code></li></ul></td><td><ul><li><code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code></li><li><code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code></li><li><code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code></li><li><code class="directive"><a href="../mod/core.html#servername">ServerName</a></code></li><li><code class="directive"><a href="../mod/core.html#serverpath">ServerPath</a></code></li><li><code class="directive"><a href="../mod/core.html#virtualhost">VirtualHost</a></code></li><li><code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code></li></ul></td></tr></table> + + <p>̾١ΥСۥȤȤˤϡΥۥȤؤ + ꥯȤդ륵Ф IP ɥ쥹 (⤷ݡȤ) + ꤹɬפޤ + <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> + ǥ쥯ƥ֤ꤷޤ̾<code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> + <code>*</code> °ȤäƥФƤ IP ɥ쥹Ȥޤ + (㤨 SSL λѤʤɤ) ʣΥݡȤȤȤײ褷ƤΤǤС + <code>*:80</code> Τ褦˥ݡȤޤ褦ˤƤ + <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> ǥ쥯ƥ֤ + IP ɥ쥹Ƥ⡢ + ưŪ˥Ф IP ɥ쥹åȤȤϤʤȤ + դƤܺ٤ϡ<a href="../bind.html">Apache λȤɥ쥹 + ݡȤꤹ</a>פɤǤˡǻꤵ줿 + IP ɥ쥹ƥФΥͥåȥեȴϢդ + ʤФʤޤ</p> + + <p>ϡۥȤ줾Ф <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> ֥å + Ƥ<code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> + ǥ쥯ƥ֤ΰ <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> + ǥ쥯ƥ֤ΰƱˤƤ (ʤIP ɥ쥹ƤΥɥ쥹̣ + <code>*</code>)줾 <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> + ǥ쥯ƥ֤ˤϡ¡ɤΥۥȤ뤫 <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code> ǥ쥯ƥ֤ȡ + ΥۥѤΥƥĤե륷ƥΤɤˤ뤫 + <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code> ǥ쥯ƥ֤ + ɬפޤ</p> + + <div class="note"><h3>ᥤۥȤϤʤʤޤ</h3> + <p>ˤ륦֥Ф˥СۥȤɲä硢 + ¸Υ֥ФФƤ <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> + ֥åʤФʤޤΥСۥȤ + <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code> + <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code> + ϡХ <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code> + <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code> + ƱΤˤޤޤΥСۥȤե + Ƭ֤ơǥեȥۥȤȤư褦ˤޤ</p> + </div> + + <p>ȤС<code>www.domain.tld</code> ưƤơ + ˥Сۥ <code>www.otherdomain.tld</code> + ɲäȤޤ礦ΥСۥȤƱ IP ؤƤȤޤ + Τ褦ʾϡ<code>httpd.conf</code> + ˰ʲΤ褦ʥɤɲäǤ</p> + + <div class="example"><p><code> + NameVirtualHost *:80<br /> + <br /> + <VirtualHost *:80><br /> + <span class="indent"> + ServerName www.domain.tld<br /> + ServerAlias domain.tld *.domain.tld<br /> + DocumentRoot /www/domain<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost *:80><br /> + <span class="indent">ServerName www.otherdomain.tld<br /> + DocumentRoot /www/otherdomain<br /> + </span> + </VirtualHost><br /> + </code></p></div> + + <p><code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> ڤ + <code class="directive"><a href="../mod/core.html#virtualhost">VirtualHost</a></code> Τɤξ⡢ + * ʬˤŪ IP ɥ쥹ꤹ뤳ȤǤޤ + 㤨С IP ɥ쥹Ǥ̾١ΥСۥȤȤǡ + ̤ IP ɥ쥹Ǥϡ¾ IP ١ΥСۥȤ + Ȥ̾١ΥСۥȤȤ硢 + ꤹ뤳ȤˤʤǤ礦</p> + + <p>ʣ̾ǥХǤ褦ˤȤ¿Ǥ礦 + Τ褦ʤȤϡ<code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code> ǥ쥯ƥ֤ <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> + ˵Ҥ뤳ȤǼ¸Ǥޤ + 㤨о嵭 <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> ǤС + Τ褦˰˵줿̾ + 桼ƱΥ֥ȤȤܤˤƻѤǤ륵̾Ǥ롢 + <code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code> + ǥ쥯ƥ֤ǻǤޤ</p> + + <div class="example"><p><code> + ServerAlias domain.tld *.domain.tld + </code></p></div> + + <p><code>domain.tld</code> ɥᥤؤƤΥۥȤؤΥꥯȤ + <code>www.domain.tld</code> ΥСۥȤޤ + ̾ޥå뤿ˡ磻ɥʸ * ? + Ѥ뤳ȤǤޤפĤ̾äơ + <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code> + <code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code> + ˤ̾ȤäȤϤǤޤޤϡ + ̾ Фդ줿 IP ɥ쥹˥ޥåפ褦 + DNS ФŬڤꤷʤФʤޤ</p> + + <p>Ǹˡ<code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> ƥʤ + ¾Υǥ쥯ƥ֤ȤǡСۥȤ٤Ĵ + 뤳ȤǤޤ + ۤȤɤΥǥ쥯ƥ֤ϤΥƥʤ֤뤳ȤǤơ + ѹϤΥСۥȤФƤΤͭˤʤޤ + ɤΥǥ쥯ƥ֤ȤǤ뤫ϡǥ쥯ƥ֤ <a href="../mod/directive-dist.html#context">ƥ</a> + Ĵ٤Ƥ<em>祵Хƥ</em> + (<code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> + ƥʤγ) ѥǥ쥯ƥ֤ϥСۥȤǤ + ʤΤѤޤ</p> + + <p>ꥯȤȡФϤޤǽ <code class="directive"><a href="../mod/core.html#namevirtualhost"><NameVirtualHost></a></code> + ˥ޥå IP ɥ쥹ɤåޤޥå + ޥå IP ɥ쥹 <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> + Τ줾Υ椫 + <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code> + <code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code> + ᤵ줿ۥ̾뤫õޤ + ĤФΥѤȤޤޥåСۥ + ĤʤСޥå IP ɥ쥹 + <strong>ꥹȤκǽˤСۥ</strong> Ȥޤ</p> + + <p>̤ȤơꥹȤκǽΥСۥȤ <em>ǥե</em> + СۥȤˤʤޤIP ɥ쥹 <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> + ǥ쥯ƥ֤˥ޥåϡ<em>ᥤΥ</em> + <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code> + <strong>褷ƻȤޤ</strong> + ɤΥСۥȤˤޥåʤꥯȤФơ + ̤ΤǤСեκǽ + <code><VirtualHost></code> ƥʤˤҤƤ</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="compat" id="compat">Ť֥饦Ȥθߴ</a></h2> + + <p>Ҥ٤褦ˡ̾١ΥСۥȤư + ɬפʾäƤʤ饤ȤȤ¸ߤƤޤ + Τ褦ʥ饤ȤФƤϡ IP ɥ쥹ˤĤơ + ֺǽꤵƤСۥ + (<cite>ץ饤ޥ</cite>̾١ΥСۥ) + ڡ֤ޤ</p> + + <div class="note"><h3>ɤΤ餤Ť ?</h3> + <p>ָŤפɽƤ硢˸ŤȤ̣ƻȤäƤޤ + ԹˤƺߤǤ⤳Τ褦ʸŤ֥饦뤳Ȥޤ + ߤΥ֥饦ơ̾١ΥСۥȤɬפ + <code>Host</code> إåޤ</p> + </div> + + <p><a href="../mod/core.html#serverpath"><code>ServerPath</code></a> + ǥ쥯ƥ֤н褬ǽǤäԳʹǤɤ⡣</p> + + <p></p> + + <div class="example"><p><code> + NameVirtualHost 111.22.33.44<br /> + <br /> + <VirtualHost 111.22.33.44><br /> + <span class="indent"> + ServerName www.domain.tld<br /> + ServerPath /domain<br /> + DocumentRoot /web/domain<br /> + </span> + </VirtualHost><br /> + </code></p></div> + + <p>ˤϤɤ̣Ǥ礦? + "<code>/domain</code>" ǻϤޤ URI ؤΥꥯȤϤ٤ơ + Сۥ <code>www.domain.tld</code> ǽ롢 + Ȥ̣ǤĤޤꡢ٤ƤΥ饤Ȥ + <code>http://www.domain.tld/domain/</code> ǥǤڡ + <code>Host:</code> إåäƤ륯饤ȤǤ + <code>http://www.domain.tld/</code> ȤƤ⥢Ǥ롢 + Ȥ̣Ǥ</p> + + <p>줬ư褦ˤˤϡ + ץ饤ޥΥСۥȤΥڡ + <code>http://www.domain.tld/domain/</code> ؤΥ֤ޤ + ơСۥȤΥڡǤϡХ (<em>:</em> + "<code>file.html</code>" "<code>../icons/image.gif</code>") + 뤤 <code>/domain/</code> ǻϤޤ (<em>:</em> + "<code>http://www.domain.tld/domain/misc/file.html</code>" + "<code>/domain/misc/file.html</code>") ֤ޤ</p> + + <p>ˤϡʬεΧɬפȤʤޤ + Τ褦ʥɥ饤¤˼뤳ȤˤꡢƤξ硢 + ٤ƤΥ֥饦 ֥饦ǤŤΤǤ + ڡȤȤݾڤޤ</p> + +</div></div> +<div class="bottomlang"> +<p><span>Available Languages: </span><a href="../de/vhosts/name-based.html" hreflang="de" rel="alternate" title="Deutsch"> de </a> | +<a href="../en/vhosts/name-based.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/name-based.html" hreflang="fr" rel="alternate" title="Franais"> fr </a> | +<a href="../ja/vhosts/name-based.html" title="Japanese"> ja </a> | +<a href="../ko/vhosts/name-based.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/">⥸塼</a> | <a href="../mod/directives.html">ǥ쥯ƥ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Ѹ</a> | <a href="../sitemap.html">ȥޥå</a></p></div> +</body></html>
\ No newline at end of file diff --git a/docs/manual/vhosts/name-based.html.ko.euc-kr b/docs/manual/vhosts/name-based.html.ko.euc-kr new file mode 100644 index 00000000..9895c5a6 --- /dev/null +++ b/docs/manual/vhosts/name-based.html.ko.euc-kr @@ -0,0 +1,236 @@ +<?xml version="1.0" encoding="EUC-KR"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head><!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title≯ ȣƮ - Apache HTTP Server</title> +<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> +<link href="../images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="../mod/"></a> | <a href="../mod/directives.html">þ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html"></a> | <a href="../sitemap.html">Ʈ</a></p> +<p class="apache">Apache HTTP Server Version 2.2</p> +<img alt="" src="../images/feather.gif" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">ȣƮ</a></div><div id="page-content"><div id="preamble"><h1≯ ȣƮ </h1> +<div class="toplang"> +<p><span> : </span><a href="../de/vhosts/name-based.html" hreflang="de" rel="alternate" title="Deutsch"> de </a> | +<a href="../en/vhosts/name-based.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/name-based.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="../ja/vhosts/name-based.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/name-based.html" title="Korean"> ko </a></p> +</div> + + <p> ̸ ȣƮ ϴ + Ѵ.</p> +</div> +<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#namevip"≯ IP ȣƮ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#using"≯ ȣƮ ϱ</a></li> +<li><img alt="" src="../images/down.gif" /> <a href="#compat"> ȣȯ</a></li> +</ul><h3></h3><ul class="seealso"><li><a href="ip-based.html">IP ȣƮ </a></li><li><a href="details.html">ȣƮ ã ڼ </a></li><li><a href="mass.html">뷮 ȣƮ ϱ</a></li><li><a href="examples.html">Ϲ ȣƮ </a></li><li><a href="examples.html#serverpath">ServerPath </a></li></ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="namevip" id="namevip"≯ IP ȣƮ</a></h2> + + <p>IP ȣƮ IP ּҸ + ȣƮ Ѵ. ȣƮ ٸ IP ּҸ + Ѵ. ̸ ȣƮ Ŭ̾Ʈ + HTTP ȣƮ ˷ֱ ٶ. ̷ + IP ּҷ ٸ ȣƮ ִ.</p> + + <p≯ ȣƮ DNS ȣƮ ùٸ + IP ּҷ ϵ ȣƮ ϰ, ٸ ȣƮ + ֵ ġ ϱ⸸ ϸǹǷ ϴ. ̸ + ȣƮ IP ּҰ ʿ. Ƿ Ư + IP ȣƮ ٸ ̸ ȣƮ + ؾ Ѵ. IP ȣƮ ؾ δ:</p> + + <ul> + <li≯ ȣƮ ʴ + Ŭ̾Ʈ ִ. ̸ ȣƮ Ϸ + Ŭ̾Ʈ HTTP Host Ѵ. ̴ + HTTP/1.1 ʼ̰, ֱ HTTP/1.0 鵵 + Ȯ Ѵ. ̸ ȣƮ ϸ鼭 + Ŭ̾Ʈ ؾ Ѵٸ ִ + .</li> + + <li>SSL ݻ SSL ȼ ̸ + ȣƮ .</li> + + <li> ü Ʈ ġ ٸ IP ּҸ + ȣƮ ϴ Ʈ 뷮(bandwidth) + Ѵ.</li> + </ul> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="using" id="using"≯ ȣƮ ϱ</a></h2> + +<table class="related"><tr><th>õ </th><th>õ þ</th></tr><tr><td><ul><li><code class="module"><a href="../mod/core.html">core</a></code></li></ul></td><td><ul><li><code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code></li><li><code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code></li><li><code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code></li><li><code class="directive"><a href="../mod/core.html#servername">ServerName</a></code></li><li><code class="directive"><a href="../mod/core.html#serverpath">ServerPath</a></code></li><li><code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code></li></ul></td></tr></table> + + <p≯ ȣƮ Ϸ + IP ּҸ (Ƹ Ʈ) ؾ Ѵ. ̴ <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> þ ϴ. + Ϲ IP ּҸ Ѵٸ + <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> + ƱԸƮ <code>*</code> Ѵ. Ʈ + ( , SSL ) ȹ̶ <code>*:80</code> + ƱԸƮ Ʈ ߰ؾ Ѵ. <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> þ IP ּҸ + ־ٰ ڵ IP ּҸ ٸ + ϶. ڼ <a href="../bind.html">ġ + ּҿ Ʈ ϱ</a> ϶. , ⼭ + IP ּҴ Ʈ ̽̾ Ѵ.</p> + + <p> ܰ Ϸ ȣƮ <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> + ̴. <code class="directive"><a href="../mod/core.html#virtualhost>"><VirtualHost>></a></code> þ ƱԸƮ + <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> þ + ƱԸƮ( , IP ּҳ ּҸ ϴ <code>*</code>) + ƾ Ѵ. <code class="directive"><a href="../mod/core.html#virtualhost>"><VirtualHost>></a></code> ȿ + ּ ȣƮ ϴ <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code> þ ȣƮ + Ͻý ִ ϴ <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code> þ ʿϴ.</p> + + <div class="note"><h3> ȣƮ </h3> + <p> ϴ ȣƮ ߰Ѵٸ + ϴ ȣƮ <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> ϵ ߰ؾ + Ѵ. Ͽ ϴ <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code> <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code> ü <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code> <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code> ƾ Ѵ. + Ͽ ȣƮ ⺻ ȣƮ + ȴ.</p> + </div> + + <p> <code>www.domain.tld</code> ϰ + ־µ IP ּҿ + <code>www.otherdomain.tld</code> ȣƮ ߰ϰ + ʹٰ . <code>httpd.conf</code> + ߰ϸ ȴ:</p> + + <div class="example"><p><code> + NameVirtualHost *:80<br /> + <br /> + <VirtualHost *:80><br /> + <span class="indent"> + ServerName www.domain.tld<br /> + ServerAlias domain.tld *.domain.tld<br /> + DocumentRoot /www/domain<br /> + </span> + </VirtualHost><br /> + <br /> + <VirtualHost *:80><br /> + <span class="indent">ServerName www.otherdomain.tld<br /> + DocumentRoot /www/otherdomain<br /> + </span> + </VirtualHost><br /> + </code></p></div> + + <p><code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> + <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> + þ <code>*</code> IP ּҸ + ִ. , ̷ IP ּҿ ̸ + ȣƮ , ٸ ּҿ IP Ȥ ̸ + ȣƮ ִ.</p> + + <p> ̸ ֱ ٶ. ̴ + <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> + ȿ <code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code> + þ Ͽ ϴ. ù° <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> Ͽ + <code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code> þ + ϸ ̸ Ʈ ִ:</p> + + <div class="example"><p><code> + ServerAlias domain.tld *.domain.tld + </code></p></div> + + <p><code>domain.tld</code> ο ִ ȣƮ + û <code>www.domain.tld</code> ȣƮ Ѵ. + ̸ ٶ ϵī <code>*</code> <code>?</code> + ִ. <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code>̳ <code>ServerAlias</code> + ̸ ־ٰ ƴϴ. ̸ + IP ּҷ ϵ DNS ˸° ؾ Ѵ.</p> + + <p> <code class="directive"><a href="../mod/core.html#<virtualhost>"><<VirtualHost>></a></code> ȿ ٸ + þ Ͽ ȣƮ ڼ ִ. + κ þ , õ ȣƮ + Ѵ. þ 밡 ˷ þ <a href="../mod/directive-dict.html#Context"></a> + Ȯ϶. (<code class="directive"><a href="../mod/core.html#<virtualhost>"><<VirtualHost>></a></code> ƴ) + <em>ּ</em> þ ȣƮ + þ 쿡 ȴ.</p> + + <p>û <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> IP + ּ ˻Ѵ. ٸ IP ּҸ <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> + ǵ鿡 û ȣƮ ġϴ <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code>̳ + <code>ServerAlias</code> ã´. ã Ѵ. + ȣƮ ãϸ, IP ּҿ شϴ + <strong>ȣƮ ù° </strong> Ѵ.</p> + + <p> ó ȣƮ <em>⺻</em> + ȣƮ ȴ. IP ּҰ <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> þ شϸ, + <em>ּ</em> <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code> + <strong></strong> ʴ´. Ư ȣƮ + شʴ û Ϸ <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> Ͽ + ϸ ȴ.</p> + +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> +<div class="section"> +<h2><a name="compat" id="compat"> ȣȯ</a></h2> + + <p>̹ ̸ ȣƮ ùٷ ϱ + ʿ ʴ Ŭ̾Ʈ ִ. ̷ Ŭ̾Ʈ + û IP ּҿ ù° ȣƮ + (<cite></cite> ̸ ȣƮ) + Ѵ.</p> + + <div class="note"><h3> ϴ°?</h3> + <p>⼭ Ǿ Ѵ. + ó ̷ Ǿ. + ̸ ȣƮ ʿ <code>Host</code> + .</p> + </div> + + <p> ణ 彺 <code class="directive"><a href="../mod/core.html#serverpath">ServerPath</a></code> þ ذ ִ:</p> + + <p> :</p> + + <div class="example"><p><code> + NameVirtualHost 111.22.33.44<br /> + <br /> + <VirtualHost 111.22.33.44><br /> + <span class="indent"> + ServerName www.domain.tld<br /> + ServerPath /domain<br /> + DocumentRoot /web/domain<br /> + </span> + </VirtualHost><br /> + </code></p></div> + + <p>̰ ΰ? "<code>/domain</code>" ϴ + URI û ȣƮ <code>www.domain.tld</code> + Ѵ. , <code>Host:</code> Ŭ̾Ʈ + <code>http://www.domain.tld/</code>ε , + <code>http://www.domain.tld/domain/</code>δ + Ŭ̾Ʈ ִ.</p> + + <p≯ ȣƮ ִ + <code>http://www.domain.tld/domain/</code> ũ + ִ´. ȣƮ 븵ũ ( , + "<code>file.html</code>" ̳ "<code>../icons/image.gif</code>") + Ȥ ("<code>http://www.domain.tld/domain/misc/file.html</code>"̳ + "<code>/domain/misc/file.html</code>" ) տ + <code>/domain/</code> ũ Ѵ.</p> + + <p> Ģ ʿ Ģ κ + ̳ ̳ + ִ.</p> + +</div></div> +<div class="bottomlang"> +<p><span> : </span><a href="../de/vhosts/name-based.html" hreflang="de" rel="alternate" title="Deutsch"> de </a> | +<a href="../en/vhosts/name-based.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="../fr/vhosts/name-based.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="../ja/vhosts/name-based.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="../ko/vhosts/name-based.html" title="Korean"> ko </a></p> +</div><div id="footer"> +<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="../mod/"></a> | <a href="../mod/directives.html">þ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html"></a> | <a href="../sitemap.html">Ʈ</a></p></div> +</body></html>
\ No newline at end of file |
