You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sl...@apache.org on 2002/08/16 20:21:48 UTC
cvs commit: httpd-2.0/docs/manual/vhosts name-based.html.en
slive 2002/08/16 11:21:48
Modified: docs/manual/vhosts name-based.html.en
Log:
Make it even more clear that EVERY host must have a
<virtualhost> section with name-virtual-hosts.
This is already clearly documented a few paragraphs below, but
judging by questions on the newsgroup/mailing list, people
don't read past the example.
Revision Changes Path
1.18 +12 -4 httpd-2.0/docs/manual/vhosts/name-based.html.en
Index: name-based.html.en
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/vhosts/name-based.html.en,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -b -u -r1.17 -r1.18
--- name-based.html.en 25 Jul 2002 21:46:42 -0000 1.17
+++ name-based.html.en 16 Aug 2002 18:21:48 -0000 1.18
@@ -105,10 +105,18 @@
href="../mod/core.html#documentroot">DocumentRoot</a> directive to
show where in the filesystem the content for that host lives.</p>
-<p>For example, suppose that both <samp>www.domain.tld</samp> and
-<samp>www.otherdomain.tld</samp> point at an IP address
-that the server is listening to. Then you simply add the following
-to <code>httpd.conf</code>:</p>
+<p>If you are adding virtual hosts to an existing web server, you
+must also create a <VirtualHost> block for the existing host.
+The <code>ServerName</code> and <code>DocumentRoot</code> included in
+this virtual host should be the same as the global
+<code>ServerName</code> and <code>DocumentRoot</code>. List this
+virtual host first in the configuration file so that it will act as
+the default host.</p>
+
+<p>For example, suppose that you are serving the domain
+<samp>www.domain.tld</samp> and you wish to add the virtual host
+<samp>www.otherdomain.tld</samp>, which points at the same IP address.
+Then you simply add the following to <code>httpd.conf</code>:</p>
<pre>
NameVirtualHost *