From: Joshua Slive Date: Fri, 16 Aug 2002 18:21:48 +0000 (+0000) Subject: Make it even more clear that EVERY host must have a X-Git-Tag: AGB_BEFORE_AAA_CHANGES~235 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1051b18e72bba7f44459e67fa7eab0785e8b79a5;p=apache Make it even more clear that EVERY host must have a 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96416 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/vhosts/name-based.html.en b/docs/manual/vhosts/name-based.html.en index f77b3b5960..effd7f78f2 100644 --- a/docs/manual/vhosts/name-based.html.en +++ b/docs/manual/vhosts/name-based.html.en @@ -105,10 +105,18 @@ designate which host is served and a DocumentRoot directive to show where in the filesystem the content for that host lives.

-

For example, suppose that both www.domain.tld and -www.otherdomain.tld point at an IP address -that the server is listening to. Then you simply add the following -to httpd.conf:

+

If you are adding virtual hosts to an existing web server, you +must also create a <VirtualHost> block for the existing host. +The ServerName and DocumentRoot included in +this virtual host should be the same as the global +ServerName and DocumentRoot. List this +virtual host first in the configuration file so that it will act as +the default host.

+ +

For example, suppose that you are serving the domain +www.domain.tld and you wish to add the virtual host +www.otherdomain.tld, which points at the same IP address. +Then you simply add the following to httpd.conf:

     NameVirtualHost *