Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C74559977 for ; Wed, 11 Jul 2012 04:32:21 +0000 (UTC) Received: (qmail 18726 invoked by uid 500); 11 Jul 2012 04:32:18 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 18690 invoked by uid 500); 11 Jul 2012 04:32:18 -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: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 18638 invoked by uid 99); 11 Jul 2012 04:32:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2012 04:32:16 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of icicimov@gmail.com designates 209.85.161.173 as permitted sender) Received: from [209.85.161.173] (HELO mail-gg0-f173.google.com) (209.85.161.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2012 04:32:08 +0000 Received: by ggnp1 with SMTP id p1so911513ggn.18 for ; Tue, 10 Jul 2012 21:31:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=N6GAIe6xLrJVJGaDKl8I7zApXS/62TIfo2kCtpZZk/I=; b=JFcRbjHtuCRLxdLzUewhp2+YIjaB7CdqWshn7wWok0CGhjlirZJpbHIDEqVza5/OHJ FnZ2Gqlg8GCfjO2Qlabdnr6EqnZDnNUjFf9lVFizkTe9qdipX4Hb1zFb+RAZe3qDFpUo H5hug4aBzpYN1xX+AgwpVWeIbIxiaIBIL/dsdRNAuzoKWjpLmRxDQx+HJUvfgsna8s4d Yklu7RsPJq6LfAX52nBXZaK0A8aqFe9ASExxpJXj7xZkbKsTuBImw+r+3sJ+AEg4pGbw WPmUf7OnEABQ6KgDQAnopjRLazxZUcnFhY4PPW4N6d6RPmAcbsr6dd8hqEgHOJsFiCGo k8Tg== MIME-Version: 1.0 Received: by 10.50.202.102 with SMTP id kh6mr13327770igc.69.1341981108056; Tue, 10 Jul 2012 21:31:48 -0700 (PDT) Received: by 10.42.61.133 with HTTP; Tue, 10 Jul 2012 21:31:48 -0700 (PDT) In-Reply-To: References: Date: Wed, 11 Jul 2012 14:31:48 +1000 Message-ID: From: Igor Cicimov To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=f46d044788533db2f504c486536d Subject: Re: [users@httpd] virtual host precedence ? --f46d044788533db2f504c486536d Content-Type: text/plain; charset=ISO-8859-1 On Wed, Jul 11, 2012 at 12:20 AM, Roland Roland wrote: > Can anyone help me out in understand how/why virtual host take precedence > on the same ip ? > like i always face an issue where two distinct virtual hosts are set. > the first works, the second doesn't unless i bump it up so it becomes the > first listed in the conf file. > > The requests for each of the domains you host will go to the appropriate virtual host. If you are asking about the ones that don't have a virtual host then the first VirtualHost in the config file is the default one. All explained here: http://httpd.apache.org/docs/2.0/vhosts/name-based.html --f46d044788533db2f504c486536d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, Jul 11, 2012 at 12:20 AM, Roland Roland <R_O_L_a_N_D@hotmail= .com> wrote:
Can anyone help me out in understand how/why virtual host take precedence o= n the same ip ?
like i always face an issue where two distinct virtual hosts are set.
the first works, the second doesn't unless i bump it up so it becomes t= he first listed in the conf file.


The requests for each of the domains y= ou host will go to the appropriate virtual host. If you are asking about th= e ones that don't have a virtual host then the first VirtualHost in the= config file is the default one. All explained here:=A0http://httpd.apache.org/doc= s/2.0/vhosts/name-based.html

=A0
--f46d044788533db2f504c486536d--