]> granicus.if.org Git - apache/commitdiff
add a note about *:80 and change the example to use it.
authorAndré Malo <nd@apache.org>
Fri, 10 Oct 2003 23:08:19 +0000 (23:08 +0000)
committerAndré Malo <nd@apache.org>
Fri, 10 Oct 2003 23:08:19 +0000 (23:08 +0000)
PR: 23606

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

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

index 102e25582649fa0425b331655dee6d0d90ce35f6..f22243afa5b39789969f4a3a883ab3299af4f876 100644 (file)
     address (and possibly port) on the server that will be accepting
     requests for the hosts.  This is configured using the <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> directive.
     In the normal case where any and all IP addresses on the server should
-    be used, you can use <code>*</code> as the argument to <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code>. Note that mentioning an
-    IP address in a <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code>
-    directive does not automatically make the server listen to that IP address.
-    See <a href="../bind.html">Setting which addresses and ports Apache uses</a> 
+    be used, you can use <code>*</code> as the argument to <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code>. If you're planning to use
+    multiple ports (e.g. running SSL) you should add a Port to the argument,
+    such as <code>*:80</code>. Note that mentioning an IP address in a
+    <code class="directive"><a href="../mod/core.html#namevirtualhost">NameVirtualHost</a></code> directive does not
+    automatically make the server listen to that IP address. See
+    <a href="../bind.html">Setting which addresses and ports Apache uses</a>
     for more details. In addition, any IP address specified here must be
     associated with a network interface        on the server.</p>
 
     Then you simply add the following to <code>httpd.conf</code>:</p>
 
     <div class="example"><p><code>
-        NameVirtualHost *<br />
+        NameVirtualHost *:80<br />
         <br />
-        &lt;VirtualHost *&gt;<br />
+        &lt;VirtualHost *:80&gt;<br />
         <span class="indent">
             ServerName www.domain.tld<br />
             ServerAlias domain.tld *.domain.tld<br />
         </span>
         &lt;/VirtualHost&gt;<br />
         <br />
-        &lt;VirtualHost *&gt;<br />
+        &lt;VirtualHost *:80&gt;<br />
         <span class="indent">ServerName www.otherdomain.tld<br />
             DocumentRoot /www/otherdomain<br />
         </span>
index 08c651a25d91b0c6a1729b9bda1f105c0ffb0e1e..8b416c7b36620ebb8b8858dd45d33bec8d0618b5 100644 (file)
     module="core">NameVirtualHost</directive> directive.
     In the normal case where any and all IP addresses on the server should
     be used, you can use <code>*</code> as the argument to <directive
-    module="core">NameVirtualHost</directive>. Note that mentioning an
-    IP address in a <directive module="core">NameVirtualHost</directive>
-    directive does not automatically make the server listen to that IP address.
-    See <a href="../bind.html">Setting which addresses and ports Apache uses</a> 
+    module="core">NameVirtualHost</directive>. If you're planning to use
+    multiple ports (e.g. running SSL) you should add a Port to the argument,
+    such as <code>*:80</code>. Note that mentioning an IP address in a
+    <directive module="core">NameVirtualHost</directive> directive does not
+    automatically make the server listen to that IP address. See
+    <a href="../bind.html">Setting which addresses and ports Apache uses</a>
     for more details. In addition, any IP address specified here must be
     associated with a network interface        on the server.</p>
 
     Then you simply add the following to <code>httpd.conf</code>:</p>
 
     <example>
-        NameVirtualHost *<br />
+        NameVirtualHost *:80<br />
         <br />
-        &lt;VirtualHost *&gt;<br />
+        &lt;VirtualHost *:80&gt;<br />
         <indent>
             ServerName www.domain.tld<br />
             ServerAlias domain.tld *.domain.tld<br />
         </indent>
         &lt;/VirtualHost&gt;<br />
         <br />
-        &lt;VirtualHost *&gt;<br />
+        &lt;VirtualHost *:80&gt;<br />
         <indent>ServerName www.otherdomain.tld<br />
             DocumentRoot /www/otherdomain<br />
         </indent>