From: Stefan Fritsch Date: Tue, 22 Feb 2011 23:17:50 +0000 (+0000) Subject: Add some links and bits to the ap_expr docs X-Git-Tag: 2.3.11~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff06d3078c8b6d65c390f837010c3100a869c379;p=thirdparty%2Fapache%2Fhttpd.git Add some links and bits to the ap_expr docs git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1073543 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/expr.xml b/docs/manual/expr.xml index c0a41b9b3ba..ea9a182929f 100644 --- a/docs/manual/expr.xml +++ b/docs/manual/expr.xml @@ -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 "(" word ")" 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 "(" word ")" 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 diff --git a/docs/manual/mod/mod_authz_core.xml b/docs/manual/mod/mod_authz_core.xml index a10614ea5ce..79c5a9d240d 100644 --- a/docs/manual/mod/mod_authz_core.xml +++ b/docs/manual/mod/mod_authz_core.xml @@ -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.

diff --git a/docs/manual/mod/mod_ssl.xml b/docs/manual/mod/mod_ssl.xml index bb2400877e3..e48824d7aeb 100644 --- a/docs/manual/mod/mod_ssl.xml +++ b/docs/manual/mod/mod_ssl.xml @@ -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 +