From: Eric Covener Date: Tue, 24 Mar 2015 13:07:30 +0000 (+0000) Subject: xforms X-Git-Tag: 2.4.13~327 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e96119c3349dcf362632a715daca0c63fa4e4d0;p=apache xforms git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1668878 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/expr.html.en b/docs/manual/expr.html.en index 0b7f8d438d..cfc7af43fc 100644 --- a/docs/manual/expr.html.en +++ b/docs/manual/expr.html.en @@ -44,7 +44,7 @@
  • Other
  • Comparison with SSLRequire
  • Version History
  • -

    See also

    +

    See also

    top

    Grammar in Backus-Naur Form notation

    diff --git a/docs/manual/mod/mod_alias.html.en b/docs/manual/mod/mod_alias.html.en index d1fef99097..8cf014f7cf 100644 --- a/docs/manual/mod/mod_alias.html.en +++ b/docs/manual/mod/mod_alias.html.en @@ -51,6 +51,15 @@ a different URL. They are often used when a resource has moved to a new location.

    +

    When the Alias, + ScriptAlias and + Redirect directives are used + within a <Location> + or <LocationMatch> + section, expression syntax can be used + to manipulate the destination path or URL. +

    +

    mod_alias is designed to handle simple URL manipulation tasks. For more complicated tasks such as manipulating the query string, use the tools provided by @@ -106,14 +115,24 @@ Alias /foo /gaq would always match before the /foo/bar Alias, so the latter directive would be ignored.

    +

    When the Alias, + ScriptAlias and + Redirect directives are used + within a <Location> + or <LocationMatch> + section, these directives will take precedence over any globally + defined Alias, + ScriptAlias and + Redirect directives.

    +
    top

    Alias Directive

    - - +
    Description:Maps URLs to filesystem locations
    Syntax:Alias URL-path +
    Syntax:Alias [URL-path] file-path|directory-path
    Context:server config, virtual host
    Context:server config, virtual host, directory
    Status:Base
    Module:mod_alias
    @@ -168,6 +187,20 @@ Alias /foo /gaq

    Any number slashes in the URL-path parameter matches any number of slashes in the requested URL-path.

    +

    If the Alias directive is used within a + <Location> + or <LocationMatch> + section the URL-path is omitted, and the file-path is interpreted + using expression syntax.

    + +
    <Location /image>
    +    Alias /ftp/pub/image
    +</Location>
    +<LocationMatch /error/(?<NUMBER>[0-9]+)>
    +    Alias /usr/local/apache/errors/%{env:MATCH_NUMBER}.html
    +</LocationMatch>
    + +
    top
    @@ -259,7 +292,7 @@ expressions - @@ -299,14 +332,17 @@ Redirect /one /two Note that POSTs will be discarded.
    Only complete path segments are matched, so the above example would not match a request for - http://example.com/servicefoo.txt. For more complex matching - using regular expressions, see the RedirectMatch directive.

    + http://example.com/servicefoo.txt. For more complex matching + using the expression syntax, omit the URL-path + argument as described below. Alternatively, for matching using regular + expressions, see the RedirectMatch directive.

    Note

    Redirect directives take precedence over Alias and ScriptAlias directives, irrespective of their ordering in the configuration - file.

    + file. Redirect directives inside a Location take precedence over + Redirect and Alias directives with an URL-path.

    If no status argument is given, the redirect will be "temporary" (HTTP status 302). This indicates to the client @@ -348,6 +384,24 @@ Redirect /one /two Redirect 303 /three http://example.com/other +

    If the Redirect directive is used within a + <Location> + or <LocationMatch> + section with the URL-path omitted, then the URL parameter will be + interpreted using expression syntax.

    + +
    <Location /one>
    +    Redirect permanent http://example.com/two
    +</Location>
    +<Location /three> + Redirect 303 http://example.com/other +</Location>
    +<LocationMatch /error/(?<NUMBER>[0-9]+)> + Redirect permanent http://example.com/errors/%{env:MATCH_NUMBER}.html +</LocationMatch>
    +
    + +
    top
    @@ -423,9 +477,9 @@ a different URL
    Description:Sends an external redirect asking the client to fetch a different URL
    Syntax:Redirect [status] URL-path +
    Syntax:Redirect [status] [URL-path] URL
    Context:server config, virtual host, directory, .htaccess
    Override:FileInfo
    - - +
    Description:Maps a URL to a filesystem location and designates the target as a CGI script
    Syntax:ScriptAlias URL-path +
    Syntax:ScriptAlias [URL-path] file-path|directory-path
    Context:server config, virtual host
    Context:server config, virtual host, directory
    Status:Base
    Module:mod_alias
    @@ -481,6 +535,21 @@ target as a CGI script of the CGI scripts if they are not restricted by a Directory section. +

    If the ScriptAlias directive is used within + a <Location> + or <LocationMatch> + section with the URL-path omitted, then the URL parameter will be + interpreted using expression syntax.

    + +
    <Location /cgi-bin >
    +    ScriptAlias /web/cgi-bin/
    +</Location>
    +<LocationMatch /cgi-bin/errors/(?<NUMBER>[0-9]+)>
    +    ScriptAlias /web/cgi-bin/errors/%{env:MATCH_NUMBER}.cgi
    +</LocationMatch>
    +
    + +

    See also