From 5c4fba3ffbe778bdffe10a93d04821579601a020 Mon Sep 17 00:00:00 2001 From: Arno Töll Date: Sat, 20 Oct 2012 02:58:14 +0200 Subject: Imported Upstream version 2.4.3 --- docs/manual/expr.html.en | 77 ++++++++++++++++++++++++++++++------------------ 1 file changed, 49 insertions(+), 28 deletions(-) (limited to 'docs/manual/expr.html.en') diff --git a/docs/manual/expr.html.en b/docs/manual/expr.html.en index 20176d7f..191c61ab 100644 --- a/docs/manual/expr.html.en +++ b/docs/manual/expr.html.en @@ -8,10 +8,13 @@ Expressions in Apache HTTP Server - Apache HTTP Server - + + +
<-
@@ -34,7 +37,7 @@ replaced by Require expr.

-

See also

top
-

Grammar in Backus–Naur Form notation

+

Grammar in Backus-Naur Form notation

-

Backus–Naur Form (BNF) is a notation +

Backus-Naur Form (BNF) is a notation technique for context-free grammars, often used to describe the syntax of languages used in computing.

@@ -446,26 +449,23 @@ listfunction ::= listfuncname "(" word ")"

The following examples show how expressions might be used to evaluate requests:

-

- # Compare the host name to example.com and redirect to www.example.com if it matches
- <If "%{HTTP_HOST} == 'example.com'">
- - Redirect permanent / http://www.example.com
-
- </If>

- # Force text/plain if requesting a file with the query string contains 'forcetext'
- <If "%{QUERY_STRING} =~ /forcetext/">
- - ForceType text/plain
-
- </If>

- # Only allow access to this content during business hours
- <Directory "/foo/bar/business">
- - Require expr %{TIME_HOUR} >= 9 && %{TIME_HOUR} <= 17
-
- </Directory> -

+
+# Compare the host name to example.com and redirect to www.example.com if it matches
+<If "%{HTTP_HOST} == 'example.com'">
+    Redirect permanent / http://www.example.com
+</If>
+
+# Force text/plain if requesting a file with the query string contains 'forcetext'
+<If "%{QUERY_STRING} =~ /forcetext/">
+    ForceType text/plain
+</If>
+
+# Only allow access to this content during business hours
+<Directory "/foo/bar/business">
+    Require expr %{TIME_HOUR} -gt 9 && %{TIME_HOUR} -lt 17 
+</Directory>	
+	
+
top

Other

@@ -506,7 +506,28 @@ listfunction ::= listfuncname "(" word ")"

Available Languages:  en  |  fr 

-
top

Comments

Notice:
This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our mailing lists.
+
+
\ No newline at end of file -- cgit v1.2.3