mmagic word in nginx?
Igor Sysoev
is at rambler-co.ru
Mon Mar 2 11:27:00 MSK 2009
On Mon, Mar 02, 2009 at 09:17:02AM +0100, Daniel Epi wrote:
> Hi Maxim!
>
> Thanks for the reply. You're absolutly right.
> The for static contect caught the url.
>
> I'll cahnge it to:
> location ~* ^.+\.(jpg|jpeg|gif.....)$ {
> ...
> }
> as shown in the example (http://wiki.codemongers.com/NginxFullExample2)
I'm not sure, but probably single anchor (^ and $) regex will be faster:
- location ~* ^.+\.(jpg|jpeg|gif.....)$ {
+ location ~* \.(jpg|jpeg|gif.....)$ {
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list