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 <[EMAIL PROTECTED]> 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 + + <VirtualHost 111.22.33.44:80> + ServerName www.domain.tld + DocumentRoot /www/domain-80 + </VirtualHost> + + <VirtualHost 111.22.33.44:8080> + ServerName www.domain.tld + DocumentRoot /www/domain-8080 + </VirtualHost> + + <VirtualHost 111.22.33.44:80> + ServerName www.otherdomain.tld + DocumentRoot /www/otherdomain-80 + </VirtualHost> + + <VirtualHost 111.22.33.44:8080> + ServerName www.otherdomain.tld + DocumentRoot /www/otherdomain-8080 + </VirtualHost> + + </PRE></BLOCKQUOTE> + </UL> <HR>