Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 39105 invoked from network); 22 Feb 2011 23:18:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Feb 2011 23:18:12 -0000 Received: (qmail 78173 invoked by uid 500); 22 Feb 2011 23:18:12 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 78016 invoked by uid 500); 22 Feb 2011 23:18:11 -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 78008 invoked by uid 99); 22 Feb 2011 23:18:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Feb 2011 23:18:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Feb 2011 23:18:10 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 9941B23888D2; Tue, 22 Feb 2011 23:17:50 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r1073543 - in /httpd/httpd/trunk/docs/manual: expr.xml mod/mod_authz_core.xml mod/mod_ssl.xml Date: Tue, 22 Feb 2011 23:17:50 -0000 To: cvs@httpd.apache.org From: sf@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110222231750.9941B23888D2@eris.apache.org> Author: sf Date: Tue Feb 22 23:17:50 2011 New Revision: 1073543 URL: http://svn.apache.org/viewvc?rev=1073543&view=rev Log: Add some links and bits to the ap_expr docs Modified: httpd/httpd/trunk/docs/manual/expr.xml httpd/httpd/trunk/docs/manual/mod/mod_authz_core.xml httpd/httpd/trunk/docs/manual/mod/mod_ssl.xml Modified: httpd/httpd/trunk/docs/manual/expr.xml URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/expr.xml?rev=1073543&r1=1073542&r2=1073543&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/expr.xml (original) +++ httpd/httpd/trunk/docs/manual/expr.xml Tue Feb 22 23:17:50 2011 @@ -31,14 +31,20 @@ for all configuration directives. This document describes the ap_expr expression parser.

+

The ap_expr expression is intended to replace most other + expression variants in HTTPD. For example, the deprecated + SSLRequire expressions can be + replaced by Require expr. +

If -mod_rewrite -mod_include -mod_setenvif -SSLRequire +RewriteCond +SetEnvIfExpr FilterProvider +Require expr +SSLRequire +mod_include
Grammar in Backus–Naur Form notation @@ -153,7 +159,11 @@ listfunction ::= listfuncname "( REQUEST_URI The URI of the request REQUEST_FILENAME - + The full local filesystem path to the file or script matching the + request, if this has already been determined by the server at the + time REQUEST_FILENAME is referenced. Otherwise, such + as when used in virtual host context, the same value as + REQUEST_URI SCRIPT_FILENAME Same as REQUEST_FILENAME SCRIPT_USER @@ -161,7 +171,8 @@ listfunction ::= listfuncname "( SCRIPT_GROUP The group name of the group of the script. PATH_INFO - + The trailing path name information, see + AcceptPathInfo QUERY_STRING The query string of the current request IS_SUBREQ Modified: httpd/httpd/trunk/docs/manual/mod/mod_authz_core.xml URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_authz_core.xml?rev=1073543&r1=1073542&r2=1073543&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/mod/mod_authz_core.xml (original) +++ httpd/httpd/trunk/docs/manual/mod/mod_authz_core.xml Tue Feb 22 23:17:50 2011 @@ -240,8 +240,8 @@ Require expr %{TIME_HOUR} >= 9 & %{TIME_HOUR} <= 17
-

TODO: Include a link to a description of the ap_expr syntax, once we have - such a description.

+

The syntax is described in the ap_expr + documentation.

Modified: httpd/httpd/trunk/docs/manual/mod/mod_ssl.xml URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_ssl.xml?rev=1073543&r1=1073542&r2=1073543&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/mod/mod_ssl.xml (original) +++ httpd/httpd/trunk/docs/manual/mod/mod_ssl.xml Tue Feb 22 23:17:50 2011 @@ -1343,10 +1343,34 @@ the left-hand-side expression.

+SSLRequire is deprecated +

SSLRequire is deprecated and should in general be replaced +by Require expr. The so called +ap_expr syntax of Require expr is +a superset of the syntax of SSLRequire, with the following +exception:

+ +

In SSLRequire, the comparison operators <, +<=, ... completely equivalent to the operators +lt, le, ... and work in a somewhat pecular way that +first compares the length of two strings and then the lexical order. +On the other hand, ap_expr has two sets of +comparison operators: The operators <, +<=, ... do lexical string comparison, while the operators +-lt, -le, ... do integer comparison. +For the latter, there are also aliases without the leading dashes: +lt, le, ... +

+ +
+ Environment Variables in Apache HTTP Server, for additional examples. +Require expr +Generic expression syntax in Apache HTTP Server +