locations with regex
Andrew Deason
zeroguy at verizon.net
Tue Oct 23 01:39:09 MSD 2007
On Mon, 22 Oct 2007 18:58:40 -0200
Alejandro Vartabedian <lists at webservice.com.uy> wrote:
[snip]
> works ok, but something like:
>
> location ^~ /(app1|app2)/ {
[snip]
> doesn't...
> i've read http://wiki.codemongers.com/NginxHttpCoreModule#location but
>From that very page:
>> The second is to use the prefix ^~. This prefix is used with a
>> conventional string and tells nginx to not check regular expressions
>> if the path provided is a match.
^~ does not signify a regex. It is a simple string, and just says not
to search the regexes. You want "~", possibly "~ ^/(app1|app2)/".
--
Andrew Deason
zeroguy at verizon.net
More information about the nginx
mailing list