You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by fa...@locus.apache.org on 2000/10/19 20:55:49 UTC

cvs commit: httpd-docs-1.3/htdocs/manual/vhosts examples.html

fanf        00/10/19 11:55:49

  Modified:    htdocs/manual/vhosts examples.html
  Log:
  Add a configuration that combines NameVirtualHost with multiple ports.
  PR: 6697
  Submitted by: Michael Long <ml...@infoave.net>
  
  Revision  Changes    Path
  1.12      +38 -0     httpd-docs-1.3/htdocs/manual/vhosts/examples.html
  
  Index: examples.html
  ===================================================================
  RCS file: /home/cvs/httpd-docs-1.3/htdocs/manual/vhosts/examples.html,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -u -r1.11 -r1.12
  --- examples.html	2000/09/18 01:54:27	1.11
  +++ examples.html	2000/10/19 18:55:48	1.12
  @@ -195,6 +195,44 @@
          Now requests from both networks will be served from the same
          <CODE>VirtualHost</CODE>
   
  +<LI><STRONG>Setup 4:</STRONG>
  +       You have multiple domains going to the same IP and also want
  +       to serve multiple ports.  By defining the
  +       ports in the "NameVirtualHost" tag, you can allow this to
  +       work. If you try using <VirtualHost name:port> without the
  +       NameVirtualHost name:port or you try to use the Port
  +       directive, your configuration will not work.
  +       <P>
  +
  +       <STRONG>Server configuration:</STRONG>
  +
  +       <BLOCKQUOTE><PRE>
  +    ...   
  +    NameVirtualHost 111.22.33.44:80
  +    NameVirtualHost 111.22.33.44:8080
  +
  +    &lt;VirtualHost 111.22.33.44:80&gt;
  +    ServerName www.domain.tld
  +    DocumentRoot /www/domain-80
  +    &lt;/VirtualHost&gt;
  +
  +    &lt;VirtualHost 111.22.33.44:8080&gt;
  +    ServerName www.domain.tld
  +    DocumentRoot /www/domain-8080
  +    &lt;/VirtualHost&gt;
  +
  +    &lt;VirtualHost 111.22.33.44:80&gt;
  +    ServerName www.otherdomain.tld
  +    DocumentRoot /www/otherdomain-80
  +    &lt;/VirtualHost&gt;
  +
  +    &lt;VirtualHost 111.22.33.44:8080&gt;
  +    ServerName www.otherdomain.tld
  +    DocumentRoot /www/otherdomain-8080
  +    &lt;/VirtualHost&gt;
  +
  +    </PRE></BLOCKQUOTE>
  +
   </UL>
   
   <HR>