Return-Path: X-Original-To: apmail-httpd-docs-archive@www.apache.org Delivered-To: apmail-httpd-docs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B198B18811 for ; Tue, 24 Nov 2015 13:26:30 +0000 (UTC) Received: (qmail 17739 invoked by uid 500); 24 Nov 2015 13:26:30 -0000 Delivered-To: apmail-httpd-docs-archive@httpd.apache.org Received: (qmail 16695 invoked by uid 500); 24 Nov 2015 13:26:29 -0000 Mailing-List: contact docs-help@httpd.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: docs@httpd.apache.org List-Id: Delivered-To: mailing list docs@httpd.apache.org Received: (qmail 16684 invoked by uid 99); 24 Nov 2015 13:26:28 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Nov 2015 13:26:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id DC6E0180992 for ; Tue, 24 Nov 2015 13:26:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.12 X-Spam-Level: X-Spam-Status: No, score=-0.12 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id GCeTOtxnjv40 for ; Tue, 24 Nov 2015 13:26:21 +0000 (UTC) Received: from mail-ig0-f173.google.com (mail-ig0-f173.google.com [209.85.213.173]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id CDFCE20C40 for ; Tue, 24 Nov 2015 13:26:20 +0000 (UTC) Received: by igvg19 with SMTP id g19so95113907igv.1 for ; Tue, 24 Nov 2015 05:26:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=6IGzr3mk2mrlSkFv0bhtLXYlf5EhS00ycivreK8h6bY=; b=c7ahly1+CWyhKvsDfKkorV11YX+lxuay/O+ztuItosp41HncvLuIIvUFQPQK5E06lQ E0hLM2V4UV4hxFLznbq3/kK8XxfCsm7XIGShzAsPI6ocEXFYi4TPAk0mK+Y95KdUsuY2 c/mGCHMnLSqVQM7jf1M8O/tlwd4T3oEAR0Nm7p6TrJvDt0HJuolcxMIscMFQjjS/r5ft ZHDQvT/ThP72ihPZycFNX1xO/8rbEN+/0YcaZ07jsoQUwx2lg9bF8tEZJqCYe1KuH6zi QzHnYJgML2Cebo3KNLoNZId0gUBKgkD5ghETqT6s/jDWFHkXe53CP9lvt+KaAemYE+o8 g8AQ== MIME-Version: 1.0 X-Received: by 10.50.155.106 with SMTP id vv10mr17556164igb.36.1448371574074; Tue, 24 Nov 2015 05:26:14 -0800 (PST) Received: by 10.64.114.199 with HTTP; Tue, 24 Nov 2015 05:26:14 -0800 (PST) In-Reply-To: References: Date: Tue, 24 Nov 2015 08:26:14 -0500 Message-ID: Subject: Fwd: [users@httpd] RewriteCond to compare file sizes From: Eric Covener To: docs@httpd.apache.org Content-Type: text/plain; charset=UTF-8 maybe good for an example in rewrite or ap_expr doc. ---------- Forwarded message ---------- From: mohammad aghanabi Date: Tue, Nov 24, 2015 at 3:05 AM Subject: Re: [users@httpd] RewriteCond to compare file sizes To: users@httpd.apache.org Thank you. I then worked with it a little to find how it works: RewriteCond expr "filesize('%{REQUEST_FILENAME}') -gt 1024" On Mon, Nov 23, 2015 at 4:43 PM, Yehuda Katz wrote: > > I have never used it, but according to the documentation it is available in 2.4. > RewriteCond supports expr [1], and expr has a function for filesize [2]. > > [1] http://httpd.apache.org/docs/2.4/mod/mod_rewrite.html#rewritecond > > [2] http://httpd.apache.org/docs/2.4/expr.html#functions > > - Y > > Sent from a device with a very small keyboard and hyperactive autocorrect. > > On Nov 23, 2015 5:56 AM, "mohammad aghanabi" wrote: >> >> Hello >> >> 4 years ago a user offered [https://bz.apache.org/bugzilla/show_bug.cgi?id=43845] a modification to mod_rewrite.c which would made it usable to compare file sizes within RewriteCond CondPattern. >> >> and someone commented on it "trunk has support for complex expressions in RewriteCond which also offer file size comparison" >> >> I want to know what happened to that suggestion, applied or not and if not what that comment is about? >> >> Thanks -- Eric Covener covener@gmail.com --------------------------------------------------------------------- To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org For additional commands, e-mail: docs-help@httpd.apache.org