summaryrefslogtreecommitdiffstats
path: root/docs/manual/vhosts
diff options
context:
space:
mode:
authorRich Bowen <rbowen@apache.org>2009-03-12 18:52:51 +0100
committerRich Bowen <rbowen@apache.org>2009-03-12 18:52:51 +0100
commiteb99eebdcd4f19864048f6f42dbd4ad61ea935f9 (patch)
tree08b99980068c8a6f0ae867cd549c511a4e47b2c5 /docs/manual/vhosts
parentAdd an example of using a wildcard with ServerAlias (diff)
downloadapache2-eb99eebdcd4f19864048f6f42dbd4ad61ea935f9.tar.xz
apache2-eb99eebdcd4f19864048f6f42dbd4ad61ea935f9.zip
It's a pet peeve of mine when docs do something, and then say "don't do that."
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
Diffstat (limited to 'docs/manual/vhosts')
-rw-r--r--docs/manual/vhosts/ip-based.html.en7
-rw-r--r--docs/manual/vhosts/ip-based.xml7
2 files changed, 8 insertions, 6 deletions
diff --git a/docs/manual/vhosts/ip-based.html.en b/docs/manual/vhosts/ip-based.html.en
index 7ba49f1ab7..7eefd312f7 100644
--- a/docs/manual/vhosts/ip-based.html.en
+++ b/docs/manual/vhosts/ip-based.html.en
@@ -113,7 +113,7 @@
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 />
@@ -121,7 +121,7 @@
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 />
@@ -131,7 +131,8 @@
</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
diff --git a/docs/manual/vhosts/ip-based.xml b/docs/manual/vhosts/ip-based.xml
index 7b54a12b49..e1ea4912a2 100644
--- a/docs/manual/vhosts/ip-based.xml
+++ b/docs/manual/vhosts/ip-based.xml
@@ -118,7 +118,7 @@
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 />
@@ -126,7 +126,7 @@
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 />
@@ -136,7 +136,8 @@
</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