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;
> }
>
|