Return-Path: X-Original-To: apmail-httpd-docs-archive@www.apache.org Delivered-To: apmail-httpd-docs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3A8EF9032 for ; Thu, 31 May 2012 02:43:56 +0000 (UTC) Received: (qmail 49968 invoked by uid 500); 31 May 2012 02:43:55 -0000 Delivered-To: apmail-httpd-docs-archive@httpd.apache.org Received: (qmail 49886 invoked by uid 500); 31 May 2012 02:43:55 -0000 Mailing-List: contact docs-help@httpd.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: docs@httpd.apache.org List-Id: Delivered-To: mailing list docs@httpd.apache.org Received: (qmail 49852 invoked by uid 99); 31 May 2012 02:43:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 May 2012 02:43:54 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,NORMAL_HTTP_TO_IP X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 May 2012 02:43:53 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 12D1A550B; Thu, 31 May 2012 02:43:33 +0000 (UTC) From: bugzilla@apache.org To: docs@httpd.apache.org Subject: [Bug 53334] New: non * name-based vhosts sometimes short-circut ServerName/ServerAlias Date: Thu, 31 May 2012 02:43:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Apache httpd-2 X-Bugzilla-Component: Documentation X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: covener@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: docs@httpd.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: priority bug_id assigned_to short_desc bug_severity classification op_sys reporter rep_platform bug_status version component product Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=53334 Priority: P2 Bug ID: 53334 Assignee: docs@httpd.apache.org Summary: non * name-based vhosts sometimes short-circut ServerName/ServerAlias Severity: normal Classification: Unclassified OS: Linux Reporter: covener@gmail.com Hardware: PC Status: NEW Version: 2.5-HEAD Component: Documentation Product: Apache httpd-2 when you use name-based vhosting and a non-wildcard host/ip argument to , httpd will accept the first match between the incoming Host header and the verbatim individual host/ip arguments to without ever checking ServerName/ServerAlias. This never happens with * because the request hostname can't match *. ServerName www.example.com ServerName other.example.com ServerAlias 1.2.3.4 but http://1.2.3.4/ will route to the first vhost, not because it's the default but because 1.2.3.4 is in [one of] the args to . AFAICT what it's trying to tolerate is: host1.example.com=1.2.3.4 host2.example.com=1.2.3.4 NameVirtualHost 1.2.3.4 (this actually works w/o servername, but as a thought experiment consider ServerName host1.example.com (yes, host1) in the 2nd VH will not do anything) -/- Anyway, the vhost resolution should warn of this -- if the arg you used in matches the requested hostname before a servername/serveralias is matched, it will be used instead. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org For additional commands, e-mail: docs-help@httpd.apache.org