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: locat ion


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: locat ion
  • From: "Alex, the Marrch Ca'at" <marrch.caat@xxxxxxxxx>
  • Date: Thu, 29 Oct 2009 15:48:11 +0300
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=/8CamqSyS7QtWQPLqtC8fUVWvBzRAwaSpoiXstUR/tg=; b=PtRaIthIWaBI7gVheDo9ufp27CgoWJT6hKNUd9qLywGab+V43wKScVcGiI4c15eeTg DQAB30NZn8fL86BzKAxe/WZ0ad518ezGqowx/cT56Ad591nlvsJ1H0PRj36rVgeK6sgP oLBVcpB5d8nob1Ha9uHtAqvm30i9XeuyVfzcI=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=bAotnCCSp4/ncZ8Q8OpfiahNj7Ed/m0YaEcHMzVJmRPGIrZ8l7XLh/5/bpLh3IyJDY ZtQIG0mgZTPOvWNhYAeyEktvOkdlVbtlQ8wIRtXC1ygVVW/+70oi6tkB2+E9dwlLzQ1Z G3Z6kIzWp3R1fToGDgxEbFcxU1dtKYjR02xDQ=
  • In-reply-to: <59947dcd0910270557q6f989dd6vc4e23aab015eb53f@xxxxxxxxxxxxxx>
  • References: <59947dcd0910270557q6f989dd6vc4e23aab015eb53f@xxxxxxxxxxxxxx>

.       $box_cutHeight - ,
    -    " ", 
,  .  regexp-   .   
  if, ,   ,     
    :)
   perl-     
,    ??

 .

2009/10/27 ash2k - <ash2kk@xxxxxxxxx>:
> !     -   
>   ?
>
> location ~ ^/box/(([1-9][0-9]*)x([1-9][0-9]*))/(?:../)?((..).+)$
> {
>  set $box_filename $4;
>  set $box_newMaxWidth $2;
>  set $box_newMaxHeight $3;
>  set $box_cutHeight 0;
>  root /home/cropbox/www/cache/box;
>  try_files /$1/$5/$4 @box;
> }
> location ~
> ^/box/(([1-9][0-9]*)x([1-9][0-9]*)x([1-9][0-9]*))/(?:../)?((..).+)$
> {
>  set $box_filename $5;
>  set $box_newMaxWidth $2;
>  set $box_newMaxHeight $3;
>  set $box_cutHeight $4;
>  root /home/cropbox/www/cache/box;
>  try_files /$1/$6/$5 @box;
> }
> location @box
> {
>  error_log
> /home/cropbox/log/nginx.box.error_log warn;
>  error_page 404 /img/imagenotfound.png;
>  error_page 500 502 503 504
> /img/imageunavailable.png;
>  include fastcgi_params;
>  fastcgi_param SCRIPT_FILENAME
> /home/cropbox/www/box.php;
>  fastcgi_param QUERY_STRING
> filename=$box_filename&newMaxWidth=$box_newMaxWidth&newMaxHeight=$box_newMaxHeight&cutHeight=$box_cutHeight;
>  fastcgi_intercept_errors on;
>  fastcgi_pass unix:/tmp/php.sock;
> }
>


 




Copyright © Lexa Software, 1996-2009.