Mailing List Archive

cvs commit: httpd-docs-1.3/htdocs/manual/mod core.html
rbowen 00/09/09 11:58:14

Modified: htdocs/manual/mod core.html
Log:
Added example of putting more than one IP address in a VirtualHost section.
Submitted by: Rich Bowen <rbowen@rcbowen.com>

Revision Changes Path
1.168 +15 -0 httpd-docs-1.3/htdocs/manual/mod/core.html

Index: core.html
===================================================================
RCS file: /home/cvs/httpd-docs-1.3/htdocs/manual/mod/core.html,v
retrieving revision 1.167
retrieving revision 1.168
diff -u -r1.167 -r1.168
--- core.html 2000/09/09 17:59:40 1.167
+++ core.html 2000/09/09 18:58:13 1.168
@@ -3330,6 +3330,21 @@
command (if your OS supports it), or with kernel patches like <A
HREF="../misc/vif-info.html">VIF</A> (for SunOS(TM) 4.1.x)).<P>

+You can specify more than one IP address. This is useful if a machine
+responds to the same name on two different interfaces. For example,
+if you have a VirtualHost that is available to hosts on an internal
+(intranet) as well as external (internet) network.
+
+Example:
+<BLOCKQUOTE>
+<CODE>
+&lt;VirtualHost 192.168.1.2 204.255.176.199&gt;<BR>
+DocumentRoot /www/docs/host.foo.com<BR>
+ServerName host.foo.com<BR>
+ServerAlias host<BR>
+&lt;/VirtualHost&gt;
+</CODE></BLOCKQUOTE>
+
The special name <CODE>_default_</CODE> can be specified in which case
this virtual host will match any IP address that is not explicitly listed
in another virtual host. In the absence of any _default_ virtual host