Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 33997 invoked from network); 22 Mar 2005 11:29:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Mar 2005 11:29:40 -0000 Received: (qmail 45164 invoked by uid 500); 22 Mar 2005 11:29:31 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 44971 invoked by uid 500); 22 Mar 2005 11:29:28 -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: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 44957 invoked by uid 99); 22 Mar 2005 11:29:28 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from ptb-relay01.plus.net (HELO ptb-relay01.plus.net) (212.159.14.212) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 22 Mar 2005 03:29:27 -0800 Received: from [212.159.0.2] (helo=workstation1205) by ptb-relay01.plus.net with esmtp (Exim) id 1DDh0t-000HqL-Cc for users@httpd.apache.org; Tue, 22 Mar 2005 10:53:31 +0000 From: Gary Wilson To: users@httpd.apache.org Content-Type: text/plain Organization: PlusNet plc. Date: Tue, 22 Mar 2005 10:53:29 +0000 Message-Id: <1111488809.8681.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked Subject: [users@httpd] Regexps in rewrite rules X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I understand that Apache 2.0 uses Perl style regexps. With this in mind, I wrote the following rewrite rule to force a mime type of a CGI application for antyhing under /cgi-bin EXCEPT files inding in .html - however the rule always returns "Not matched" in the rewrite logs, and no matter how I attempt this rule, it never seems to match. Other rules I have written with more vanilla regular expressions all work fine, but I can't seem to do the following negation successfully. RewriteRule /cgi-bin/.*(?!\.html $) /local/apache/cgi-bin/cgiwrap/%{ENV:UID}/$1 [T=application/x-httpd-cgi,NS] Can anyone advise what is wrong with this rule please? Thanks GW --------------------------------------------------------------------- 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