Return-Path: Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 74569 invoked by uid 500); 8 Nov 2001 16:10:21 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 74540 invoked by uid 500); 8 Nov 2001 16:10:20 -0000 Delivered-To: apmail-apache-1.3-cvs@apache.org Delivered-To: apmail-httpd-docs-1.3-cvs@apache.org Date: 8 Nov 2001 15:58:32 -0000 Message-ID: <20011108155832.36642.qmail@icarus.apache.org> From: slive@apache.org To: httpd-docs-1.3-cvs@apache.org Subject: cvs commit: httpd-docs-1.3/htdocs/manual/misc FAQ-E.html X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N slive 01/11/08 07:58:32 Modified: htdocs/manual/misc FAQ-E.html Log: Make this a little closer to valid xhtml. Revision Changes Path 1.13 +25 -26 httpd-docs-1.3/htdocs/manual/misc/FAQ-E.html Index: FAQ-E.html =================================================================== RCS file: /home/cvs/httpd-docs-1.3/htdocs/manual/misc/FAQ-E.html,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -b -u -r1.12 -r1.13 --- FAQ-E.html 2001/11/08 15:53:11 1.12 +++ FAQ-E.html 2001/11/08 15:58:31 1.13 @@ -33,7 +33,7 @@

Apache Server Frequently Asked Questions

-

$Revision: 1.12 $ ($Date: 2001/11/08 15:53:11 $)

+

$Revision: 1.13 $ ($Date: 2001/11/08 15:58:31 $)

The latest version of this FAQ is always available from the main Apache web site, at <

Many sites map a variety of hostnames to the same content. - (This differs from virtual hosting where - different hostnames map to different content.) For example, - www.example.com, example.com and - www.example.net may all refer to the same site. - It is best to make sure that, regardless of the name clients - use to access the site, they will be redirected to a single, - canonical hostname. This makes the site easier to maintain - and assures that there will be only one version of the site - in proxy caches and search engines.

+ For example, www.example.com, + example.com and www.example.net may + all refer to the same site. It is best to make sure that, + regardless of the name clients use to access the site, they + will be redirected to a single, canonical hostname. This + makes the site easier to maintain and assures that there will + be only one version of the site in proxy caches and search + engines.

There are two techniques to implement canonical hostnames:

@@ -680,20 +679,20 @@ virtual hosting:
-NameVirtualHost *
-
-<VirtualHost *>
-  ServerName www.example.net
-  ServerAlias example.com
-  Redirect permanent / http://www.example.com/
-</VirtualHost>
-
-<VirtualHost *>
-  ServerName www.example.com
-  DocumentRoot /usr/local/apache/htdocs
+NameVirtualHost *
+
+<VirtualHost *>
+  ServerName www.example.net
+  ServerAlias example.com
+  Redirect permanent / http://www.example.com/
+</VirtualHost>
+
+<VirtualHost *>
+  ServerName www.example.com
+  DocumentRoot /usr/local/apache/htdocs
</VirtualHost>
- +