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 0E2F5FD42 for ; Mon, 15 Apr 2013 23:39:12 +0000 (UTC) Received: (qmail 45526 invoked by uid 500); 15 Apr 2013 23:39:09 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 45332 invoked by uid 500); 15 Apr 2013 23:39:08 -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 45317 invoked by uid 99); 15 Apr 2013 23:39:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Apr 2013 23:39:08 +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 [75.180.132.120] (HELO cdptpa-omtalb.mail.rr.com) (75.180.132.120) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Apr 2013 23:39:04 +0000 X-Authority-Analysis: v=2.0 cv=cYNQXw/M c=1 sm=0 a=WfNYnXfd5AlQD2NaLIi6mQ==:17 a=EwAZTTr63BkA:10 a=FKkrIqjQGGEA:10 a=XQhQhY_da9wA:10 a=gKdNUozYXGYA:10 a=wPDyFdB5xvgA:10 a=IkcTkHD0fZMA:10 a=Fx01H1t8AAAA:8 a=VeSwPg3qZjYA:10 a=ciCAvefvAAAA:8 a=-VerDNqB_IQMrUR4-dsA:9 a=QEXdDO2ut3YA:10 a=thVeFYP5CaEA:10 a=WfNYnXfd5AlQD2NaLIi6mQ==:117 X-Cloudmark-Score: 0 X-Authenticated-User: X-Originating-IP: 75.177.185.93 Received: from [75.177.185.93] ([75.177.185.93:36195] helo=mail.electrichendrix.com) by cdptpa-oedge03.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id A2/35-11869-38F8C615; Mon, 15 Apr 2013 23:38:43 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.electrichendrix.com (Postfix) with ESMTP id 5D3501182F7 for ; Mon, 15 Apr 2013 19:34:36 -0400 (EDT) X-Virus-Scanned: amavisd-new at mail.electrichendrix.com Received: from mail.electrichendrix.com ([127.0.0.1]) by localhost (mail.electrichendrix.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id pUG1bLmSKHA3 for ; Mon, 15 Apr 2013 19:34:35 -0400 (EDT) Received: from mail.electrichendrix.com (mail.electrichendrix.com [192.168.124.3]) by mail.electrichendrix.com (Postfix) with ESMTP id 873201182F5 for ; Mon, 15 Apr 2013 19:34:35 -0400 (EDT) Date: Mon, 15 Apr 2013 19:34:35 -0400 (EDT) From: Chris Arnold To: users@httpd.apache.org Message-ID: <531957396.10743.1366068875357.JavaMail.root@electrichendrix.com> In-Reply-To: References: <1227574649.10684.1366066348420.JavaMail.root@electrichendrix.com> <1910289534.10699.1366066633240.JavaMail.root@electrichendrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Mailer: Zimbra 8.0.0_GA_5434 (ZimbraWebClient - IE8 (Win)/8.0.0_GA_5434) Thread-Topic: Rewrite Rule Rewriting root site Thread-Index: 40+yg+16wazIjW7NsZeFdwabC4KaFA== X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Rewrite Rule Rewriting root site On Mon, Apr 15, 2013 at 6:57 PM, Chris Arnold wrote: > We have a server at http://rootsite.net. We also have another site/app that runs at http://apps.rootsite.net. We host client applications on our server using apache so the above site/app needs to be http://apps.ourclientsdomain.tld. Here is what i have gotten to work in the site/app virtual host file: > > ServerName apps.* > > RewriteEngine On > RewriteCond %{HTTP_HOST} ^apps\. > RedirectMatch ^/$ /somealias/ Did you mean RewriteRule? RewriteCond doesn't limit any other directives. Actually, it is the RedirectMatch specifically causing the problem. How to specify only match http://apps.somesite.tld? --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org