From: André Malo Historically, there are several syntax variants for expressions used to express
- a condition in the different modules of the Apache HTTP Server.
- There is some ongoing effort to only use a single variant, called ap_expr,
- for all configuration directives.
- This document describes the ap_expr expression parser.
+ Historically, there are several syntax variants for expressions
+ used to express a condition in the different modules of the Apache
+ HTTP Server. There is some ongoing effort to only use a single
+ variant, called ap_expr, 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
-
void *per_dir_config; /* Options set in config files, etc. */
void *request_config; /* Notes on *this* request */
-
};
diff --git a/docs/manual/expr.xml b/docs/manual/expr.xml
index fcd1ea1280..0d5a29cb00 100644
--- a/docs/manual/expr.xml
+++ b/docs/manual/expr.xml
@@ -25,17 +25,16 @@
Backus-Naur Form (BNF) is a notation - technique for context-free grammars, often used to describe the syntax of languages used in computing. +
Backus-Naur
+ Form (BNF) is a notation technique for context-free grammars,
+ often used to describe the syntax of languages used in computing.
In most cases, expressions are used to express boolean values.
- For these, the starting point in the BNF is expr
. However, a few directives
- like string
.
+ For these, the starting point in the BNF is expr
.
+ However, a few directives like string
.
@@ -238,8 +241,9 @@ listfunction ::= listfuncname "(" word ")"The DocumentRoot of the current vhost+ - AUTH_TYPE
The configured AuthType - (e.g. "basic
")The configured AuthType (e.g. + "basic
")CONTENT_TYPE
The content type of the response @@ -288,14 +292,16 @@ listfunction ::= listfuncname "(" word ")" HANDLER
The day of the week (starting with 0
for Sunday)+ - TIME
The date and time in the format 20101231235959
The date and time in the format + 20101231235959
SERVER_SOFTWARE
The server version string - API_VERSION
The date of the API version (module magic number) Some modules register additional variables, see e.g.
+mod_ssl .Some modules register additional variables, see e.g. +
mod_ssl .
false
", or "no
" (case insensitive).
True otherwise.-R
%{REMOTE_ADDR} -ipmatch ...
", but more efficient
+ %{REMOTE_ADDR} -ipmatch ...
", but more
+ efficient
Name | Description | Restricted | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
req , http |
@@ -455,7 +462,9 @@ listfunction ::= listfuncname "(" word ")"
|||||||||||
resp |
Get HTTP response header | ||||||||||
reqenv |
- Lookup request environment variable (as a shortcut, v can be used too to access variables). | Lookup request environment variable (as a shortcut,
+ v can be used too to access
+ variables). | |||||||||
osenv |
Lookup operating system environment variable | ||||||||||
note |
@@ -500,11 +509,11 @@ listfunction ::= listfuncname "(" word ")"
the expression. The string contained in string list | ||||||||||
/regexp/ |
m#regexp# |
- Regular expression (the second form allows different delimiters than /) | Regular expression (the second form allows different + delimiters than /) | ||||||||
/regexp/i |
m#regexp#i |
Case insensitive regular expression |
Packet Format (Server->Container) | +Packet Format (Server->Container) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Byte | +Byte | 0 | 1 | 2 | @@ -206,7 +207,7 @@ ProxyPassReverse /apps/foo http://www.example.com/foo4...(n+3) | ||||||
Contents | +Contents | 0x12 | 0x34 | Data Length (n) | @@ -214,11 +215,12 @@ ProxyPassReverse /apps/foo http://www.example.com/foo
Packet Format (Container->Server) | +Packet Format (Container->Server) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Byte | +Byte | 0 | 1 | 2 | @@ -226,7 +228,7 @@ ProxyPassReverse /apps/foo http://www.example.com/foo4...(n+3) | ||||||
Contents | +Contents | A | B | Data Length (n) | @@ -241,6 +243,7 @@ ProxyPassReverse /apps/foo http://www.example.com/foo
Code | Type of Packet | @@ -282,6 +285,7 @@ ProxyPassReverse /apps/foo http://www.example.com/foo
Code | Type of Packet | diff --git a/docs/manual/mod/mod_remoteip.xml b/docs/manual/mod/mod_remoteip.xml index bb764d33eb..02f680cb41 100644 --- a/docs/manual/mod/mod_remoteip.xml +++ b/docs/manual/mod/mod_remoteip.xml @@ -178,11 +178,11 @@ RemoteIPInternalProxyList conf/trusted-proxies.lst