Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 71147 invoked by uid 500); 25 Jul 2003 15:20:01 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 71128 invoked from network); 25 Jul 2003 15:20:00 -0000 Received: from pimout3-ext.prodigy.net (207.115.63.102) by daedalus.apache.org with SMTP; 25 Jul 2003 15:20:00 -0000 Received: from nvsys.com (adsl-67-124-148-75.dsl.pltn13.pacbell.net [67.124.148.75]) by pimout3-ext.prodigy.net (8.12.9/8.12.3) with ESMTP id h6PFK18o026050 for ; Fri, 25 Jul 2003 11:20:02 -0400 Message-ID: <3F214AA5.3070207@nvsys.com> Date: Fri, 25 Jul 2003 08:20:05 -0700 From: Gregg Donley User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@httpd.apache.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: [users@httpd] Problem with multiple virtual hosts and dynamic dns I have three domains for which I am hosting websites on my windows box. All three domains use url framing to point to the same dynamic dns host. The problem is that apache seems unable to distinguish between the three domains and access the correct virtual host container, it sends them all to the default virtual host. Creating an additional virtual host with the name of the dynamic dns host confirms that apache is seeing that host name rather than the host specified by the client. Is this the expected behavior? It there a way to have multiple domains point to the same dynamic dns host and still have apache distiguish between them and direct them to different virtual hosts? Thanks. NameVirtualHost * # Default - seems to catch everything if the dyn_dns virtual host is omitted ServerName default DocumentRoot "C:\Program Files\Apache Group\Apache2\htdocs" ScriptAlias /cgi-bin/ \ "C:\Program Files\Apache Group\Apache2\cgi-bin/" ErrorLog "C:\Program Files\Apache Group\Apache2\logs\error.log" CustomLog "C:\Program Files\Apache Group\Apache2\logs\access.log" common # First domain ServerName domain1.com ServerAlias *.domain1.com DocumentRoot "C:\Program Files\Apache Group\Apache2\domain1.com\htdocs" ScriptAlias /cgi-bin/ \ "C:\Program Files\Apache Group\Apache2\domain1.com\cgi-bin/" ErrorLog "C:\Program Files\Apache Group\Apache2\domain1.com\logs\error.log" CustomLog "C:\Program Files\Apache Group\Apache2\domain1.com\logs\access.log" common # Second domain ServerName domain2.com ServerAlias *.domain2.com DocumentRoot "C:\Program Files\Apache Group\Apache2\domain2.com\htdocs" ScriptAlias /cgi-bin/ \ "C:\Program Files\Apache Group\Apache2\domain2.com\cgi-bin/" ErrorLog "C:\Program Files\Apache Group\Apache2\domain2.com\logs\error.log" CustomLog "C:\Program Files\Apache Group\Apache2\domain2.com\logs\access.log" common # Added virtual host for dynamic dns host which, if present, gets all request. ServerName dyn_dns.com ServerAlias *.dyn_dns.com DocumentRoot "C:\Program Files\Apache Group\Apache2\dyn_dns.com\htdocs" ScriptAlias /cgi-bin/ \ "C:\Program Files\Apache Group\Apache2\dyn_dns.com\cgi-bin/" ErrorLog "C:\Program Files\Apache Group\Apache2\dyn_dns.com\logs\error.log" CustomLog "C:\Program Files\Apache Group\Apache2\dyn_dns.com\logs\access.log" common --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org