Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rewrite rule



On Sun, 26 Dec 2004, RaPaMaN wrote:

>
>   regexp     $1:
>
> ^/intranet/(.+\.(?:(?:jpg)|(?:png)|(?:gif)))$
>
>     $2.

  :
^/intranet/(.+\.(?:jpg|png|gif))$

>
>  ,
> .
>
> On Sunday 26 December 2004 18:09, RaPaMaN wrote:
> >    rewrite ?
> >
> >  1:
> >
> >         rewrite ^/intranet/(.+\.(jpg|png|gif))$
> >                 /$1   last;
> >
> >   rewritten uri:
> >
> > 2004/12/26 10:16:26 [notice] 21331#0: *19720
> > "^/intranet/(.+\.(jpg|png|gif))$" matches
> > "/intranet/phpgwapi/templates/idots/images/vcss.png", client: 192.168.1.9,
> > URL: "/intranet/phpgwapi/templates/idots/images/vcss.png", referrer:
> > "http://www.virthost.net/intranet/login.php";
> > 2004/12/26 10:16:26 [notice] 21331#0: *19720 rewritten uri: "/", client:
> > 192.168.1.9, URL: "/intranet/phpgwapi/templates/idots/images/vcss.png",
> > referrer: "http://www.virthost.net/intranet/login.php";
> >
> >
> >  2:
> >
> >         rewrite ^/intranet/(.+\.(jpg|png|gif))$
> >                 /$1s$2   last;
> >
> >   rewritten uri:
> >
> > 2004/12/26 10:17:01 [notice] 21391#0: *19745
> > "^/intranet/(.+\.(jpg|png|gif))$" matches
> > "/intranet/phpgwapi/templates/idots/images/vcss.png", client: 192.168.1.9,
> > URL: "/intranet/phpgwapi/templates/idots/images/vcss.png", referrer:
> > "http://www.virthost.net/intranet/login.php";
> > 2004/12/26 10:17:01 [notice] 21391#0: *19745 rewritten uri:
> > "/phpgwapi/templates/idots/images/vcss.pngspng", client: 192.168.1.9, URL:
> > "/intranet/phpgwapi/templates/idots/images/vcss.png", referrer:
> > "http://www.virthost.net/intranet/login.php";


 
http://sysoev.ru




 




Copyright © Lexa Software, 1996-2009.