]> granicus.if.org Git - apache/commitdiff
It's a pet peeve of mine when docs do something, and then say "don't do that."
authorRich Bowen <rbowen@apache.org>
Thu, 12 Mar 2009 17:52:51 +0000 (17:52 +0000)
committerRich Bowen <rbowen@apache.org>
Thu, 12 Mar 2009 17:52:51 +0000 (17:52 +0000)
Remove the hostname from the <VirtualHost> line, and use an IP address
instead.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@752951 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/vhosts/ip-based.html.en
docs/manual/vhosts/ip-based.xml

index 7ba49f1ab7e748b64a68f6bc29b7acdc019c7e6f..7eefd312f79cfdfec62d5200bda79501c2341dec 100644 (file)
     host. e.g.</p>
 
     <div class="example"><p><code>
-    &lt;VirtualHost www.smallco.com&gt;<br />
+    &lt;VirtualHost 172.20.30.40:80&gt;<br />
     ServerAdmin webmaster@mail.smallco.com<br />
     DocumentRoot /groups/smallco/www<br />
     ServerName www.smallco.com<br />
     TransferLog /groups/smallco/logs/access_log<br />
     &lt;/VirtualHost&gt;<br />
     <br />
-    &lt;VirtualHost www.baygroup.org&gt;<br />
+    &lt;VirtualHost 172.20.30.50:80&gt;<br />
     ServerAdmin webmaster@mail.baygroup.org<br />
     DocumentRoot /groups/baygroup/www<br />
     ServerName www.baygroup.org<br />
     </code></p></div>
 
     <p>It is recommended that you use an IP address instead of a
-    hostname (see <a href="../dns-caveats.html">DNS caveats</a>).</p>
+    hostname in the &lt;VirtualHost&gt; directive
+    (see <a href="../dns-caveats.html">DNS caveats</a>).</p>
 
     <p>Almost <strong>any</strong> configuration directive can be
     put in the VirtualHost directive, with the exception of
index 7b54a12b4909fdb15916cefc21de7f09a0c4807a..e1ea4912a23995a01df0797b05a2dcb4a90f9bc4 100644 (file)
     host. e.g.</p>
 
     <example>
-    &lt;VirtualHost www.smallco.com&gt;<br />
+    &lt;VirtualHost 172.20.30.40:80&gt;<br />
     ServerAdmin webmaster@mail.smallco.com<br />
     DocumentRoot /groups/smallco/www<br />
     ServerName www.smallco.com<br />
     TransferLog /groups/smallco/logs/access_log<br />
     &lt;/VirtualHost&gt;<br />
     <br />
-    &lt;VirtualHost www.baygroup.org&gt;<br />
+    &lt;VirtualHost 172.20.30.50:80&gt;<br />
     ServerAdmin webmaster@mail.baygroup.org<br />
     DocumentRoot /groups/baygroup/www<br />
     ServerName www.baygroup.org<br />
     </example>
 
     <p>It is recommended that you use an IP address instead of a
-    hostname (see <a href="../dns-caveats.html">DNS caveats</a>).</p>
+    hostname in the &lt;VirtualHost&gt; directive
+    (see <a href="../dns-caveats.html">DNS caveats</a>).</p>
 
     <p>Almost <strong>any</strong> configuration directive can be
     put in the VirtualHost directive, with the exception of