Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 55973 invoked from network); 7 May 2009 14:26:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 May 2009 14:26:17 -0000 Received: (qmail 73443 invoked by uid 500); 7 May 2009 14:26:14 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 73380 invoked by uid 500); 7 May 2009 14:26:13 -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 73371 invoked by uid 99); 7 May 2009 14:26:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 May 2009 14:26:13 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.217.157] (HELO mail-gx0-f157.google.com) (209.85.217.157) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 May 2009 14:26:03 +0000 Received: by gxk1 with SMTP id 1so1606435gxk.0 for ; Thu, 07 May 2009 07:25:43 -0700 (PDT) Received: by 10.90.105.17 with SMTP id d17mr2129700agc.68.1241706343089; Thu, 07 May 2009 07:25:43 -0700 (PDT) Received: from ?192.168.1.107? (c-69-242-74-109.hsd1.pa.comcast.net [69.242.74.109]) by mx.google.com with ESMTPS id 36sm270487agc.20.2009.05.07.07.25.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 07 May 2009 07:25:42 -0700 (PDT) From: wayne To: users@httpd.apache.org In-Reply-To: <1404e5910905070719k47f00245yd6aa0d9494e4c0a0@mail.gmail.com> References: <1241575479.25534.139.camel@localhost> <200905060901.29126.rainer.frey@inxmail.de> <1241705281.19956.72.camel@localhost> <1404e5910905070719k47f00245yd6aa0d9494e4c0a0@mail.gmail.com> Content-Type: text/plain Date: Thu, 07 May 2009 10:25:41 -0400 Message-Id: <1241706341.19956.78.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] dynamic/mass virtual hosts with www.* alias and localhost... On Thu, 2009-05-07 at 10:19 -0400, Eric Covener wrote: > On Thu, May 7, 2009 at 10:08 AM, wayne wrote: > > ahoy, > > > > this is the first problem: unless i create a link with > > > "www.example1.org" to the "example1.org" directory of sites, apache will > > only server requests to example1.org, not www.example1.org . thus, i am > > trying to setup some directive to avoid having to make 2 entries (both the > > domain.org directory AND a www.domain.org link to the directory) to have > > apache serve both domains. > > Can you use mod_rewrite to force a canonocal flavor of each domain > with always www or no-www? > i assume i could do that, though mod_vhost_alias seems to be the favored method over mod_rewrite for doing this. also, using a directory interpolation of /var/www/sites/%-2.0.%-1 works perfectly, as suggested by Rainer. thanks nonetheless. --------------------------------------------------------------------- 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