Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 17447 invoked from network); 9 Jan 2007 13:19:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jan 2007 13:19:53 -0000 Received: (qmail 92048 invoked by uid 500); 9 Jan 2007 13:19:44 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 92029 invoked by uid 500); 9 Jan 2007 13:19:43 -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 92018 invoked by uid 99); 9 Jan 2007 13:19:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jan 2007 05:19:43 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of bobsiegen@googlemail.com designates 66.249.92.172 as permitted sender) Received: from [66.249.92.172] (HELO ug-out-1314.google.com) (66.249.92.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jan 2007 05:19:07 -0800 Received: by ug-out-1314.google.com with SMTP id 75so8726293ugb for ; Tue, 09 Jan 2007 05:18:37 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=googlemail.com; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=NoiXq1WvNH0YZNRgRm2GRTqsDrcACngoZWOk9jFk7iTXa15t784asgLB9HyRNRncEestGS7okMS81CwC8Jt+OeB/rSIlQBf5R/l3c5WVsmV3S7EUNJjohlSMpQHecyKqlSYRZwzTnyYTvP8M4aB9x54ilxuue81KfZMMIf5sWFM= Received: by 10.67.97.7 with SMTP id z7mr23021809ugl.1168348712304; Tue, 09 Jan 2007 05:18:32 -0800 (PST) Received: from ?192.168.178.23? ( [217.236.143.13]) by mx.google.com with ESMTP id 27sm40742842ugp.2007.01.09.05.18.31; Tue, 09 Jan 2007 05:18:31 -0800 (PST) Message-ID: <45A39624.5010803@googlemail.com> Date: Tue, 09 Jan 2007 14:18:28 +0100 From: Bob User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: users@httpd.apache.org References: <8E2924888511274B95014C2DD906E58A019099E5@MAILBOX0A.psi.ch> In-Reply-To: <8E2924888511274B95014C2DD906E58A019099E5@MAILBOX0A.psi.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Rewrite does not work Huesser Peter wrote: >> Yes, this will cause a reverse DNS lookup of remote_addr. But anyway, > I >> think your order is incorrect. If your request comes through port 80, >> the 2nd rule won't have any effect, because your first rule matched >> already. >> >> RewriteEngine On >> RewriteCond %{REMOTE_HOST} \.domain\.ch$ >> RewriteRule ^/testtinfo/fea http://another.url.ch/ [R,L] >> RewriteCond %{SERVER_PORT} =80 >> RewriteRule ^(.+)$ https://server.domain.ch$1 [R,L] >> > > Hello Bob > > I changed the order of the RewriteCond as you suggested but > unfortunately it did not have any effect. Maybe I should also mention > that /testtinfo is a ScriptAlias: > > ScriptAlias /testtinfo /var/testtinfo/cgi-bin > > Could this cause the problem? Usually not in server context, mod_rewrite acts before the mapping to filesystem occurs. You said that the rewrite log is completely empty, when you request /testtinfo/fea? That would mean the rules are not seen at all, e.g. a matched and the rules are defined in the main server config section. -- Bob --------------------------------------------------------------------- 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