Location regex issue.
Athan Dimoy
foxx at freemail.gr
Mon Feb 11 13:04:35 MSK 2008
I have a problem with regex in a location used to deny access to some Drupal
directories and files.
location ~
\.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template)$
{
return 404;
}
First part up to OR operator (|) works fine but seems to ignore the ^
operator (right next to |).
Trying to isolate the problem I used the following
location ~ ^code-style\.pl$ {
return 404;
}
Unfortunately code-style.pl was still accessible. Is ^ (begin of) operatior
supported in location context?
Thanks,
Athan
More information about the nginx
mailing list