slive 01/10/27 15:21:09 Modified: htdocs/manual/vhosts name-based.html.en Log: Fix some broken links, change to the simplest possible example, and add a couple notes to give hints to people running servers behind port-forwarding firewalls. Revision Changes Path 1.18 +19 -16 httpd-docs-1.3/htdocs/manual/vhosts/name-based.html.en Index: name-based.html.en =================================================================== RCS file: /home/cvs/httpd-docs-1.3/htdocs/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 2001/10/22 20:15:26 1.17 +++ name-based.html.en 2001/10/27 22:21:09 1.18 @@ -72,12 +72,12 @@
To use name-based virtual hosting, you must designate the IP
@@ -89,7 +89,9 @@
NameVirtualHost. Note that mentioning an IP address in a
NameVirtualHost directive does not automatically make the
server listen to that IP address. See Setting
-which addresses and ports Apache uses for more details.
+which addresses and ports Apache uses for more details. In addition,
+any IP address specified here must be associated with a network interface
+on the server.
The next step is to create a <VirtualHost> block for @@ -104,26 +106,27 @@ 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 the IP address
-188.8.131.52. Then you simply add the following
+www.otherdomain.tld point at an IP address
+that the server is listening to. Then you simply add the following
- NameVirtualHost 184.108.40.206 + NameVirtualHost * - <VirtualHost 220.127.116.11> + <VirtualHost *> ServerName www.domain.tld DocumentRoot /www/domain </VirtualHost> - <VirtualHost 18.104.22.168> + <VirtualHost *> ServerName www.otherdomain.tld DocumentRoot /www/otherdomain </VirtualHost>-
In the simplest case, the IP address
22.214.171.124 can be
* to match all IP addresses for your server.
You can alternatively specify an explicit IP address in place of
+the * in both the
Many servers want to be accessible by more than one name. This is
possible with the ServerName
ServerAlias. You must first have your DNS server
-properly configured to map those names to the IP address in the
Finally, you can fine-tune the configuration of the virtual hosts by placing other directives inside the --------------------------------------------------------------------- To unsubscribe, e-mail: email@example.com For additional commands, e-mail: firstname.lastname@example.org