Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F19EC18C53 for ; Mon, 1 Feb 2016 17:10:39 +0000 (UTC) Received: (qmail 88819 invoked by uid 500); 1 Feb 2016 17:10:33 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 88750 invoked by uid 500); 1 Feb 2016 17:10:33 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 88741 invoked by uid 99); 1 Feb 2016 17:10:33 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2016 17:10:33 +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 0EB9018048C for ; Mon, 1 Feb 2016 17:10:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.446 X-Spam-Level: X-Spam-Status: No, score=0.446 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.554] autolearn=disabled Received: from mx1-us-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 xh7C9B1YgCcS for ; Mon, 1 Feb 2016 17:10:31 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id F41B520271 for ; Mon, 1 Feb 2016 17:10:30 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 94CBBE0185 for ; Mon, 1 Feb 2016 17:10:30 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 957083A022E for ; Mon, 1 Feb 2016 17:10:30 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1727974 - /httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml Date: Mon, 01 Feb 2016 17:10:30 -0000 To: cvs@httpd.apache.org From: rbowen@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160201171030.957083A022E@svn01-us-west.apache.org> Author: rbowen Date: Mon Feb 1 17:10:30 2016 New Revision: 1727974 URL: http://svn.apache.org/viewvc?rev=1727974&view=rev Log: This is a definition list, so format it as one. Modified: httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml Modified: httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml?rev=1727974&r1=1727973&r2=1727974&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml (original) +++ httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml Mon Feb 1 17:10:30 2016 @@ -759,136 +759,152 @@ AliasMatch "^/myapp" "/opt/myapp-1.2.3"
  • You can perform lexicographical string comparisons: -
      -
    • '<CondPattern' (lexicographically - precedes)
      +
      +
      <CondPattern
      +
      Lexicographically precedes
      Treats the CondPattern as a plain string and compares it lexicographically to TestString. True if TestString lexicographically precedes - CondPattern.
    • + CondPattern. -
    • '>CondPattern' (lexicographically - follows)
      +
      >CondPattern
      +
      Lexicographically follows
      Treats the CondPattern as a plain string and compares it lexicographically to TestString. True if TestString lexicographically follows - CondPattern.
    • + CondPattern. -
    • '=CondPattern' (lexicographically - equal)
      +
      =CondPattern
      +
      Lexicographically equal
      Treats the CondPattern as a plain string and compares it lexicographically to TestString. True if TestString is lexicographically equal to CondPattern (the two strings are exactly equal, character for character). If CondPattern is "" (two quotation marks) this - compares TestString to the empty string.
    • + compares TestString to the empty string. -
    • '<=CondPattern' (lexicographically - less than or equal to)
      +
      <=CondPattern
      +
      Lexicographically less than or equal to
      Treats the CondPattern as a plain string and compares it lexicographically to TestString. True if TestString lexicographically precedes CondPattern, or is equal to CondPattern - (the two strings are equal, character for character).
    • + (the two strings are equal, character for character). -
    • '>=CondPattern' (lexicographically - greater than or equal to)
      +
      >=CondPattern
      +
      Lexicographically greater than or equal to
      Treats the CondPattern as a plain string and compares it lexicographically to TestString. True if TestString lexicographically follows CondPattern, or is equal to CondPattern - (the two strings are equal, character for character).
    • -
  • + (the two strings are equal, character for character). + +
  • You can perform integer comparisons: -
      +
      -
    • '-eq' (is numerically - equal to)
      +
      -eq
      +
      Is numerically equal to
      The TestString is treated as an integer, and is numerically compared to the CondPattern. True if - the two are numerically equal.
    • + the two are numerically equal. -
    • '-ge' (is numerically - greater than or equal to)
      +
      -ge
      +
      Is numerically greater than or equal to
      The TestString is treated as an integer, and is numerically compared to the CondPattern. True if the TestString is numerically greater than or equal - to the CondPattern.
    • + to the CondPattern. -
    • '-gt' (is numerically - greater than)
      +
      -gt
      +
      Is numerically greater than
      The TestString is treated as an integer, and is numerically compared to the CondPattern. True if the TestString is numerically greater than - the CondPattern.
    • + the CondPattern. -
    • '-le' (is numerically - less than or equal to)
      +
      -le
      +
      Is numerically less than or equal to
      The TestString is treated as an integer, and is numerically compared to the CondPattern. True if the TestString is numerically less than or equal to the CondPattern. Avoid confusion with the -l by using the -L or - -h variant.
    • + -h variant. -
    • '-lt' (is numerically - less than)
      +
      -lt
      +
      Is numerically less than
      The TestString is treated as an integer, and is numerically compared to the CondPattern. True if the TestString is numerically less than the CondPattern. Avoid confusion with the -l by using the -L or - -h variant.
    • + -h variant. -
    +
  • You can perform various file attribute tests: -
      -
    • '-d' (is - directory)
      + + +
      + +
      -d
      + +
      Is directory.
      Treats the TestString as a pathname and tests - whether or not it exists, and is a directory.
    • + whether or not it exists, and is a directory. + + +
      -f
      + +
      Is regular file.
      -
    • '-f' (is regular - file)
      Treats the TestString as a pathname and tests - whether or not it exists, and is a regular file.
    • + whether or not it exists, and is a regular file. +
      -
    • '-F' (is existing file, via - subrequest)
      +
      -F
      + +
      Is existing file, via subrequest.
      Checks whether or not TestString is a valid file, accessible via all the server's currently-configured access controls for that path. This uses an internal subrequest to do the check, so use it with care - - it can impact your server's performance!
    • - -
    • '-H' (is symbolic link, bash convention)
      - See -l.
    • + it can impact your server's performance! + -
    • '-l' (is symbolic - link)
      +
      -H
      +
      Is symbolic link, bash convention.
      + See -l. +
      + +
      -l
      + +
      Is symbolic link.
      Treats the TestString as a pathname and tests whether or not it exists, and is a symbolic link. May also use the bash convention of -L or -h if there's a possibility of confusion such as when using the -lt or - -le tests.
    • + -le tests. + -
    • '-L' (is symbolic link, bash convention)
      - See -l.
    • +
      -L
      +
      Is symbolic link, bash convention.
      + See -l.
      -
    • '-s' (is regular file, with - size)
      +
      -s
      +
      Is regular file, with size.
      Treats the TestString as a pathname and tests whether or not it exists, and is a regular file with size greater - than zero.
    • + than zero. -
    • '-U' (is existing URL, via - subrequest)
      +

      -U
      +

      Is existing URL, via subrequest.
      Checks whether or not TestString is a valid URL, accessible via all the server's currently-configured access controls for that path. This uses an internal @@ -898,16 +914,23 @@ AliasMatch "^/myapp" "/opt/myapp-1.2.3" like access control, authentication, and authorization. This flag does not return information about the status code the configured handler (static file, CGI, proxy, etc.) would have - returned.

    • + returned.

      -
    • '-x' (has executable - permissions)
      +
      -x
      +
      Has executable permissions.
      Treats the TestString as a pathname and tests whether or not it exists, and has executable permissions. These permissions are determined according to - the underlying OS.
    • + the underlying OS. + + + + For example: -
    + + RewriteCond /var/www/%{REQUEST_URI} !-f + RewriteRule ^(.+) /other/archive/$1 [R] +