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 91EE4F4DA for ; Tue, 1 Oct 2013 14:02:52 +0000 (UTC) Received: (qmail 24814 invoked by uid 500); 1 Oct 2013 14:02:49 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 24507 invoked by uid 500); 1 Oct 2013 14:02:45 -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 24471 invoked by uid 99); 1 Oct 2013 14:02:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Oct 2013 14:02:38 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of redalert.commander@gmail.com designates 209.85.128.48 as permitted sender) Received: from [209.85.128.48] (HELO mail-qe0-f48.google.com) (209.85.128.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Oct 2013 14:02:31 +0000 Received: by mail-qe0-f48.google.com with SMTP id nd7so4938018qeb.21 for ; Tue, 01 Oct 2013 07:02:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=bQGXjcA+MXk3NvmVE+cU1S6bitbeqHD1B0sDDovbmNo=; b=nX0J7VskYrdXN11EjZOR4tX+AmJpOV2MlaP36deyuTD+rvdz6fuL8pHv/bYlzsjW/N bxavfBOmxkaj0ylaac5FIkF51h+4hHaS7yNttSavrlqDvhA56U5B189Tn2yF9F1i/gpp P60GSpNOMAZdlTdJTugooxBoGB84OSVSzuoR2AOWW6QiVUxr4OI9giRx/e/lq+pEZbGH EBSAT8vap2WO6B0wHz94tPnGuOoxh62AqS4GnM6tkcXcc8PrvkLFfwePgkPBt2qbooq5 4E3/UgeL0jNXWIEaTAMNpjbiZq4zNVSCBRAZA6M48BJibMe4iN5x52K4N+NIDaUFWuEy Bk9g== MIME-Version: 1.0 X-Received: by 10.49.127.179 with SMTP id nh19mr35139942qeb.1.1380636130351; Tue, 01 Oct 2013 07:02:10 -0700 (PDT) Received: by 10.49.106.101 with HTTP; Tue, 1 Oct 2013 07:02:10 -0700 (PDT) Date: Tue, 1 Oct 2013 16:02:10 +0200 Message-ID: From: Redalert Commander To: users@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] Name based virtualhosts with default Hi, I was reading the documentation and testing out some things. We have multiple name based virtual hosts, but would like to display a page when not match is found. According to the documentation at [1] and [2], the first matching servername or alias is used, with no precedence for wildcards. What appears to be working in our case is a 'default' host with 'ServerName *', but how would I know for certain that this is the one that is always used? Our configuration has the typical include of "/etc/httpd/conf.d/*.conf", it is here that the vhosts are defined in separate files. Should the default also be placed in here or does it have to be defined at the end of the httpd.conf (master) configuration file? It is currently my understanding that I should place it at the bottom of httpd.conf; so to be sure it is that last that is matched, but I would like to hear from someone with more knowledge and/or experience about apache than myself. I would prefer it to be placed in the conf.d folder if possible. Best regards, Steven [1] http://httpd.apache.org/docs/2.2/vhosts/name-based.html [2] https://httpd.apache.org/docs/2.4/vhosts/name-based.html#defaultvhost --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org