From: Daniel Gruno Date: Fri, 30 Mar 2012 08:46:38 +0000 (+0000) Subject: Rebuild X-Git-Tag: 2.5.0-alpha~7292 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3e28c4dd5ab6e1c2cfd522e8ab00a0b4a007fd46;p=thirdparty%2Fapache%2Fhttpd.git Rebuild git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1307309 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/expr.html.en b/docs/manual/expr.html.en index e9e746b0582..614f9bd73b7 100644 --- a/docs/manual/expr.html.en +++ b/docs/manual/expr.html.en @@ -39,6 +39,7 @@
  • Binary operators
  • Unary operators
  • Functions
  • +
  • Example expressions
  • Other
  • Comparison with SSLRequire
  • See also

    @@ -440,6 +441,33 @@ listfunction ::= listfuncname "(" word ")"
    top
    +

    Example expressions

    + + +

    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> +

    +
    top
    +

    Other