httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject svn commit: r1044242 - in /httpd/httpd/trunk/docs/manual/vhosts: name-based.html.en name-based.html.fr name-based.xml.de name-based.xml.fr name-based.xml.ja name-based.xml.ko name-based.xml.meta name-based.xml.tr
Date Fri, 10 Dec 2010 08:49:46 GMT
Author: nd
Date: Fri Dec 10 08:49:46 2010
New Revision: 1044242

URL: http://svn.apache.org/viewvc?rev=1044242&view=rev
Log:
update transformation

Modified:
    httpd/httpd/trunk/docs/manual/vhosts/name-based.html.en
    httpd/httpd/trunk/docs/manual/vhosts/name-based.html.fr
    httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.de
    httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.fr
    httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.ja
    httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.ko
    httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.meta
    httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.tr

Modified: httpd/httpd/trunk/docs/manual/vhosts/name-based.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/vhosts/name-based.html.en?rev=1044242&r1=1044241&r2=1044242&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/vhosts/name-based.html.en (original)
+++ httpd/httpd/trunk/docs/manual/vhosts/name-based.html.en Fri Dec 10 08:49:46 2010
@@ -29,6 +29,7 @@
     <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="#alg">How the server
selects the proper name-based virtual host</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#using">Using Name-based
Virtual Hosts</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></ul></div>
 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif"
/></a></div>
@@ -39,10 +40,9 @@
     determine the correct virtual host to serve.  Therefore you need to
     have a separate IP address for each host.</p>
 
-    <p>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>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
@@ -63,6 +63,28 @@
         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="alg" id="alg">How the server selects the proper name-based virtual
host</a></h2>
+
+    <p>It is important to recognize that the first step in name-based virtual
+    host resolution is IP-based resolution.  Name-based virtual host
+    resolution only chooses the most appropriate name-based virtual host
+    after narrowing down the candidates to the best IP-based match.  Using a wildcard (*)
+    for the IP address in all of the NameVirtualHost and VirtualHost directives makes this
+    IP-based mapping irrelevant.</p>
+    
+    <p>When a request arrives, the server will first check if it is using
+    an IP address that matches exactly any <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">&lt;VirtualHost&gt;</a></code>
section with a (literal) matching
+    IP address and try to find one where the <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code>
or <code class="directive"><a href="../mod/core.html#serveralias">ServerAlias</a></code>

+    matches the requested hostname. If it finds one, then it uses the configuration 
+    for that server.</p>
+
+    <p><a name="defaultvhost" /> If no matching ServerName or ServerAlias is
found in the
+    set of virtual hosts matching the NameVirtualHost directive, then 
+    <strong>the first listed virtual host</strong> that matches the IP 
+    address will be used.</p>
 </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>
@@ -96,17 +118,22 @@
     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">&lt;VirtualHost&gt;</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>
+        <p> Any request that doesn't match an existing <code class="directive"><a
href="../mod/core.html#virtualhost">&lt;VirtualHost&gt;</a></code>
is handled by the global
+        server configuration, regardless of the hostname or ServerName.</p>
+
+        <p> When you add a name-based virtual host to an existing server, and 
+        the virtual host arguments match preexisting IP and port combinations, 
+        requests will now be handled by an explicit virtual host.  In this case,
+        it's usually wise to create a <a href="#defaultvhost">default virtual host</a>
+        with a <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code>
matching that of 
+        the base server.  New domains on the same interface and port, but
+        requiring separate configurations,  can then be added as subsequent (non-default)
+        virtual hosts.</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.
+    <code>www.example.com</code> and you wish to add the virtual host
+    <code>other.example.com</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>
@@ -114,14 +141,15 @@
         <br />
         &lt;VirtualHost *:80&gt;<br />
         <span class="indent">
-            ServerName www.domain.tld<br />
-            ServerAlias domain.tld *.domain.tld<br />
+            # This first-listed virtual host is also the default for *:80
+            ServerName www.example.com<br />
+            ServerAlias example.com *.example.com<br />
             DocumentRoot /www/domain<br />
         </span>
         &lt;/VirtualHost&gt;<br />
         <br />
         &lt;VirtualHost *:80&gt;<br />
-        <span class="indent">ServerName www.otherdomain.tld<br />
+        <span class="indent">ServerName other.example.com<br />
             DocumentRoot /www/otherdomain<br />
         </span>
         &lt;/VirtualHost&gt;<br />
@@ -140,11 +168,11 @@
     web site:</p>
 
     <div class="example"><p><code>
-        ServerAlias domain.tld *.domain.tld
+        ServerAlias example.com *.example.com
     </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
+    <p>then requests for all hosts in the <code>example.com</code> domain
will
+    be served by the <code>www.example.com</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
@@ -160,22 +188,6 @@
     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">&lt;VirtualHost&gt;</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">&lt;VirtualHost&gt;</a></code>
-    container and list it first in the configuration file.</p>
-
 </div></div>
 <div class="bottomlang">
 <p><span>Available Languages: </span><a href="../de/vhosts/name-based.html"
hreflang="de" rel="alternate" title="Deutsch">&nbsp;de&nbsp;</a> |

Modified: httpd/httpd/trunk/docs/manual/vhosts/name-based.html.fr
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/vhosts/name-based.html.fr?rev=1044242&r1=1044241&r2=1044242&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/vhosts/name-based.html.fr (original)
+++ httpd/httpd/trunk/docs/manual/vhosts/name-based.html.fr Fri Dec 10 08:49:46 2010
@@ -25,6 +25,8 @@
 <a href="../ko/vhosts/name-based.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a>
|
 <a href="../tr/vhosts/name-based.html" hreflang="tr" rel="alternate" title="Türkçe">&nbsp;tr&nbsp;</a></p>
 </div>
+<div class="outofdate">Cette traduction peut être périmée. Vérifiez la version
+            anglaise pour les changements récents.</div>
 
     <p>Ce document décrit quand et comment utiliser des serveurs 
     virtuels par nom.</p>

Modified: httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.de
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.de?rev=1044242&r1=1044241&r2=1044242&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.de (original)
+++ httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.de Fri Dec 10 08:49:46 2010
@@ -1,7 +1,7 @@
 <?xml version='1.0' encoding='UTF-8' ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.de.xsl"?>
-<!-- English Revision: 420990:987242 (outdated) -->
+<!-- English Revision: 420990:1044067 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more

Modified: httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.fr
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.fr?rev=1044242&r1=1044241&r2=1044242&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.fr (original)
+++ httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.fr Fri Dec 10 08:49:46 2010
@@ -1,7 +1,7 @@
 <?xml version='1.0' encoding='ISO-8859-1' ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision: 987242 -->
+<!-- English Revision: 987242:1044067 (outdated) -->
 <!-- French translation by alain B, review by Vincent Deffontaines 
 	updated by Lucien GENTIS -->
 

Modified: httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.ja
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.ja?rev=1044242&r1=1044241&r2=1044242&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.ja [utf-8] (original)
+++ httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.ja [utf-8] Fri Dec 10 08:49:46 2010
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
-<!-- English Revision: 420990:987242 (outdated) -->
+<!-- English Revision: 420990:1044067 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more

Modified: httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.ko
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.ko?rev=1044242&r1=1044241&r2=1044242&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.ko [euc-kr] (original)
+++ httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.ko [euc-kr] Fri Dec 10 08:49:46 2010
@@ -1,7 +1,7 @@
 <?xml version='1.0' encoding='EUC-KR' ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
-<!-- English Revision: 420990:987242 (outdated) -->
+<!-- English Revision: 420990:1044067 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more

Modified: httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.meta
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.meta?rev=1044242&r1=1044241&r2=1044242&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.meta (original)
+++ httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.meta Fri Dec 10 08:49:46 2010
@@ -9,7 +9,7 @@
   <variants>
     <variant outdated="yes">de</variant>
     <variant>en</variant>
-    <variant>fr</variant>
+    <variant outdated="yes">fr</variant>
     <variant outdated="yes">ja</variant>
     <variant outdated="yes">ko</variant>
     <variant outdated="yes">tr</variant>

Modified: httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.tr
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.tr?rev=1044242&r1=1044241&r2=1044242&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.tr [utf-8] (original)
+++ httpd/httpd/trunk/docs/manual/vhosts/name-based.xml.tr [utf-8] Fri Dec 10 08:49:46 2010
@@ -1,7 +1,7 @@
 <?xml version='1.0' encoding='UTF-8' ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.tr.xsl"?>
-<!-- English Revision: 659902:987242 (outdated) -->
+<!-- English Revision: 659902:1044067 (outdated) -->
 <!-- =====================================================
  Translated by: Nilgün Belma Bugüner <nilgun belgeler.org>
    Reviewed by: Orhan Berent <berent belgeler.org>



Mime
View raw message