]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix the NameVirtualHost and <VirtualHost> examples, by adding a port (:80) after...
authorVincent Deffontaines <gryzor@apache.org>
Fri, 27 May 2011 06:14:28 +0000 (06:14 +0000)
committerVincent Deffontaines <gryzor@apache.org>
Fri, 27 May 2011 06:14:28 +0000 (06:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1128161 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/core.html.en
docs/manual/mod/core.xml

index 2dc3db790bde5d21b2f6b26664df733c9dd69bc5..b646c2ae1f27697ee04eae96e15efa5b2c8c9532 100644 (file)
@@ -2320,10 +2320,10 @@ hosting</td></tr>
     required directive if you want to configure <a href="../vhosts/">name-based virtual hosts</a>.</p>
 
     <p>Although <var>addr</var> can be hostname it is recommended
-    that you always use an IP address, e.g.</p>
+    that you always use an IP address and a port, e.g.</p>
 
     <div class="example"><p><code>
-      NameVirtualHost 111.22.33.44
+      NameVirtualHost 111.22.33.44:80
     </code></p></div>
 
     <p>With the <code class="directive">NameVirtualHost</code> directive you
@@ -2374,8 +2374,8 @@ hosting</td></tr>
       exactly match the argument to the <code class="directive">NameVirtualHost</code> directive.</p>
 
       <div class="example"><p><code>
-        NameVirtualHost 1.2.3.4<br />
-        &lt;VirtualHost 1.2.3.4&gt;<br />
+        NameVirtualHost 1.2.3.4:80<br />
+        &lt;VirtualHost 1.2.3.4:80&gt;<br />
         # ...<br />
         &lt;/VirtualHost&gt;<br />
       </code></p></div>
@@ -3531,7 +3531,7 @@ hostname or IP address</td></tr>
     </ul>
 
     <div class="example"><h3>Example</h3><p><code>
-      &lt;VirtualHost 10.1.2.3&gt;<br />
+      &lt;VirtualHost 10.1.2.3:80&gt;<br />
       <span class="indent">
         ServerAdmin webmaster@host.example.com<br />
         DocumentRoot /www/docs/host.example.com<br />
@@ -3548,7 +3548,7 @@ hostname or IP address</td></tr>
     IPv6 example is shown below:</p>
 
     <div class="example"><p><code>
-      &lt;VirtualHost [2001:db8::a00:20ff:fea7:ccea]&gt;<br />
+      &lt;VirtualHost [2001:db8::a00:20ff:fea7:ccea]:80&gt;<br />
       <span class="indent">
         ServerAdmin webmaster@host.example.com<br />
         DocumentRoot /www/docs/host.example.com<br />
index e81caee2bbbe2ec30c246beefebf6aa9f308d5ca..3c390f596dac8e152ca5d1647d8ab5ed3dba8eaa 100644 (file)
@@ -2302,10 +2302,10 @@ hosting</description>
     href="../vhosts/">name-based virtual hosts</a>.</p>
 
     <p>Although <var>addr</var> can be hostname it is recommended
-    that you always use an IP address, e.g.</p>
+    that you always use an IP address and a port, e.g.</p>
 
     <example>
-      NameVirtualHost 111.22.33.44
+      NameVirtualHost 111.22.33.44:80
     </example>
 
     <p>With the <directive>NameVirtualHost</directive> directive you
@@ -2358,8 +2358,8 @@ hosting</description>
       >NameVirtualHost</directive> directive.</p>
 
       <example>
-        NameVirtualHost 1.2.3.4<br />
-        &lt;VirtualHost 1.2.3.4&gt;<br />
+        NameVirtualHost 1.2.3.4:80<br />
+        &lt;VirtualHost 1.2.3.4:80&gt;<br />
         # ...<br />
         &lt;/VirtualHost&gt;<br />
       </example>
@@ -3487,7 +3487,7 @@ hostname or IP address</description>
     </ul>
 
     <example><title>Example</title>
-      &lt;VirtualHost 10.1.2.3&gt;<br />
+      &lt;VirtualHost 10.1.2.3:80&gt;<br />
       <indent>
         ServerAdmin webmaster@host.example.com<br />
         DocumentRoot /www/docs/host.example.com<br />
@@ -3504,7 +3504,7 @@ hostname or IP address</description>
     IPv6 example is shown below:</p>
 
     <example>
-      &lt;VirtualHost [2001:db8::a00:20ff:fea7:ccea]&gt;<br />
+      &lt;VirtualHost [2001:db8::a00:20ff:fea7:ccea]:80&gt;<br />
       <indent>
         ServerAdmin webmaster@host.example.com<br />
         DocumentRoot /www/docs/host.example.com<br />