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 838F1DEBB for ; Tue, 18 Dec 2012 11:23:43 +0000 (UTC) Received: (qmail 3180 invoked by uid 500); 18 Dec 2012 11:23:39 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 3152 invoked by uid 500); 18 Dec 2012 11:23:39 -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 3126 invoked by uid 99); 18 Dec 2012 11:23:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Dec 2012 11:23:38 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [91.198.169.23] (HELO csmtp3.one.com) (91.198.169.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Dec 2012 11:23:31 +0000 Received: from [192.168.1.35] (3304ds3-soeb.0.fullrate.dk [90.184.126.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by csmtp3.one.com (Postfix) with ESMTPSA id B793224062F2 for ; Tue, 18 Dec 2012 11:23:07 +0000 (UTC) Message-ID: <50D0521B.60703@cord.dk> Date: Tue, 18 Dec 2012 12:23:07 +0100 From: Daniel Gruno User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: users@httpd.apache.org References: <50D03D14.3070102@waagmeester.co.za> <50D05122.2030400@waagmeester.co.za> In-Reply-To: <50D05122.2030400@waagmeester.co.za> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] VirtualHost Redirect with an exception On 12/18/2012 12:18 PM, Coert Waagmeester wrote: > > > On 2012/12/18 11:53 AM, Coert Waagmeester wrote: >> Hello all, >> >> We run a webserver with multiple domains pointing to it. >> >> Only one DNS name is used to serve our website. >> All the other DNS names (which exist for purposes other than www) I >> redirect to our main DNS name. >> >> >> ServerName mysvcname.net >> ServerAlias www.mysvcname.net >> Redirect / http://www.mywwwname.net >> >> >> This works perfectly, but on one of the machines where I have this >> Redirect, I am running mailman which used to listen on >> mysvcname.net/mailman which also gets Redirected now wrongly. >> >> Can I add an exception in someway that mysvcname.net gets redirected, >> but mysvcname.net/mailman stays as it should? >> >> >> Thank you in advance, >> Coert Waagmeester >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org >> For additional commands, e-mail: users-help@httpd.apache.org >> >> >> > I have googled some, and everything points to RewriteCond > Going to try that. > > > Thanks, > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > Use RedirectMatch with a negative lookahead instead, for better performance and clarity: RedirectMatch ^/(?!mailman)(.*) /$1 With regards, Daniel. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org