Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 38551 invoked from network); 16 Sep 2009 13:12:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Sep 2009 13:12:55 -0000 Received: (qmail 48563 invoked by uid 500); 16 Sep 2009 13:12:51 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 48518 invoked by uid 500); 16 Sep 2009 13:12:51 -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 48507 invoked by uid 99); 16 Sep 2009 13:12:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Sep 2009 13:12:49 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of icicimov@gmail.com designates 209.85.210.173 as permitted sender) Received: from [209.85.210.173] (HELO mail-yx0-f173.google.com) (209.85.210.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Sep 2009 13:12:39 +0000 Received: by yxe3 with SMTP id 3so6068616yxe.4 for ; Wed, 16 Sep 2009 06:12:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=FMFsjrKWSpWSjA3zgLwNAlXots63j1VopngL6l+5qyo=; b=eTVe1+D+8Pk2Si6JhjYiGpbHJsqANGZ5MSk2GSSw+gO9vW38xQdUATRJWUa47zhE+S H7jM32BImiw0CoNvM4r1u6vEMJZIqaIiI803sTCzeL5AulvmmZFz7biketTtyBzhFrWr yliFXD4Wh7EDnLrSdtRUZ9vwJ91DBAu6wgwJg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=huq76XpnnnqoXuCtrpcYPqT0xpee6x+WBuc5ZNXMfpvELL9PhMaePvSKUmIP9KPaHh NBEqTE0tCVM//AQ62wy8UZ6BgadJCo25djI9pZ73FkxJuCpBfM5NVG8yGO4MX0PMb+Ev mTpazJLzHpFQ2/Wn7VWZTEgUIbqTTlpiCgxbs= MIME-Version: 1.0 Received: by 10.150.74.6 with SMTP id w6mr14627055yba.317.1253106738464; Wed, 16 Sep 2009 06:12:18 -0700 (PDT) In-Reply-To: References: <4AAF3BE9.9080705@redcor.ch> <6ed6382b0909150054s58e43a8dyc9d7237a2a7655f0@mail.gmail.com> <46055D84-1B58-4F52-9B3C-4A6CA6B57623@kreme.com> <09DBCAB5-1139-4805-A9B1-8252F47C0A18@kreme.com> Date: Wed, 16 Sep 2009 23:12:18 +1000 Message-ID: From: Igor Cicimov To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=000e0cd3026803084c0473b1a6d4 X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Re: how do I *define* a default virtual host --000e0cd3026803084c0473b1a6d4 Content-Type: text/plain; charset=ISO-8859-1 What about defining the default VH by using the _default_ expression. Like this ServerName ServerAlias . . . On Wed, Sep 16, 2009 at 7:26 PM, Jan G.B. wrote: > > > 2009/9/15 LuKreme > >> On 15-Sep-2009, at 09:34, Jan G.B. wrote: >> >>> 2009/9/15 LuKreme >>> >>>> I always put my default VirtualHost directly into the httpd.conf file, >>>> just >>>> before the Include line. >>>> >>>> >> I'd say this way it's always unclear which is the default vhost. As you >>> have to dig through instead of just issuing a `cat >>> /etc/apache2/sites-enabled/*` or just `ls`. >>> >> >> apachectl -S >> >> As the example shows, there's also no easy way of disabling the vhost >>> on-the-fly (ie: rm ). ;-) >>> >> >> I've never needed to disabled vhosts completely like that. >> >> However, I thought if you had NameVirtualHost set and had no Vhosts >> directives that was an error in configuration. >> >> >> Great, thanks. I never noticed the show switch '-S'. That's handy. > > For disabling vhosts: it happens from time to time, when you administer > several sites with different mandants, white label stuff and alike.... > > Regards > --000e0cd3026803084c0473b1a6d4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable What about defining the default VH by using the _default_ expression. Like = this

<VirtualHost _default_:80>
ServerName
ServerAlias<= br>.
.
.
</VirtualHost>



On Wed, Sep 16, 2009 at 7:26 PM, Jan G.B. <ro0ot.w00t@googlemail.com> = wrote:


2009/9/15 LuKreme <kr= emels@kreme.com>
On 15-Sep-2009, at 09:34, Jan G.B. wrote:
2009/9/15 LuKreme <kremels@kreme.com>
I always put my default VirtualHost directly into the httpd.conf file, just=
before the Include line.


I'd say this way it's always unclear which is the default vhost. As= you
have to dig through <config_file> instead of just issuing a `cat
/etc/apache2/sites-enabled/*` or just `ls`.

apachectl -S


As the example shows, there's also no easy way of disabling the vhost on-the-fly =A0(ie: rm <symlink>). ;-)

I've never needed to disabled vhosts completely like that.

However, I thought if you had NameVirtualHost set and had no Vhosts directi= ves that was an error in configuration.


Great, thanks. I never noticed the show switch &#= 39;-S'. That's handy.

For disabling vhosts: it happens from time to time, whe= n you administer several sites with different mandants, white label stuff a= nd alike....=A0

Regards

--000e0cd3026803084c0473b1a6d4--