httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@locus.apache.org
Subject cvs commit: httpd-docs-1.3/htdocs/manual/vhosts examples.html
Date Thu, 19 Oct 2000 18:55:49 GMT
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 <mlong@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>
  
  
  

Mime
View raw message