From 1051b18e72bba7f44459e67fa7eab0785e8b79a5 Mon Sep 17 00:00:00 2001
From: Joshua Slive
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 * -- 2.50.1