From: Eric Covener Date: Sat, 17 Sep 2016 20:39:45 +0000 (+0000) Subject: xform X-Git-Tag: 2.5.0-alpha~1145 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47ec8ddc19b4a63d4d2d8fb450b31c4caf243e4f;p=thirdparty%2Fapache%2Fhttpd.git xform git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1761273 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/expr.html.en b/docs/manual/expr.html.en index 3a7b98b0e5f..b856ef3742c 100644 --- a/docs/manual/expr.html.en +++ b/docs/manual/expr.html.en @@ -437,7 +437,7 @@ listfunction ::= listfuncname "(" word ")" - +
NameDescriptionRestricted
@@ -449,15 +449,16 @@ listfunction ::= listfuncname "(" word ")"<If>) + v can also be used to access variables). + + - + + osenv @@ -480,13 +481,13 @@ listfunction ::= listfuncname "(" word ")" + + or is not regular file) + regular file) @@ -495,8 +496,28 @@ listfunction ::= listfuncname "(" word ")"
NameDescriptionSpecial notes
req, http Get HTTP request header; header names may be added to the Vary header, see below
reqenv Lookup request environment variable (as a shortcut, - v can be used too to access - variables)
ordering
osenv Lookup operating system environment variable
noteLookup request note
Lookup request noteordering
env Return first match of note, reqenv, - osenv
ordering
tolower Convert string to lower case
toupper
file Read contents from a file (including line endings, when present) - yes
restricted
filemod Return last modification time of a file (or 0 if file does not exist - or is not regular file)yes
restricted
filesize Return size of a file (or 0 if file does not exist or is not - regular file)yes
restricted
ldap Escape characters as required by LDAP distinguished name escaping (RFC4514) and LDAP filter escaping (RFC4515).
-

The functions marked as "restricted" are not available in some modules - like mod_include.

+

The functions marked as "restricted" in the final column are not + available in some modules like mod_include.

+ +

The functions marked as "ordering" in the final column require some + consideration for the ordering of different components of the server, + especially when the function is used within the + <If> directive which is + evaluated relatively early.

+
+

Environment variable ordering

+ When environment variables are looked up within an + <If> condition, it's important + to consider how extremely early in request processing that this + resolution occurs. As a guideline, any directive defined outside of virtual host + context (directory, location, htaccess) is not likely to have yet had a + chance to execute. SetEnvIf + in virtual host scope is one directive that runs prior to this resolution +
+
+ When reqenv is used outside of <If>, the resolution will generally occur later, but the + exact timing depends on the directive the expression has been used within. +

When the functions req or http are used, the header name will automatically be added to the Vary header of the