ðòïåëôù 


  áòèé÷ 


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: Memcache redirect


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: Memcache redirect
  • From: Nikita Larin <alaruss@xxxxxxxxx>
  • Date: Fri, 18 Sep 2009 14:01:18 +0400
  • 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 :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=d54h7XdxVzfdHFjGMZZi+vBVfp5/WmFcmf4+mDKwV4k=; b=xWlDNkGUx8cu/8TW7BjNAHV4dy5TS6GOacqXJ7A3xu92OexNTnD6X8BoaxdxAJ2fnN V4qmKcMSwVC5zrzsQr3bgre8vmQ8MF8bxozdrGiNQxaZhLKcSHLBUom2rnRYMIdCuSAD E/z6xkYP1/gUQB80867VSkhMitr2WESL+H02I=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=m/t/Puhp9QcB0ayuYSryOMRC1fN9VNYedbUvDTc7dRuEF6g2uNfjCsi+s1O5vaSsMS KChDboxPIIihTeQoPtRCXpIOPKYKmPNrqpwX12Le6NB5fOEM93jLYiUQCdhn8CXdixpK WlLee8zqpBJrQ+/1WHjyM+vRHgzs5U0WrEOB0=
  • In-reply-to: <4AB356E2.3040809@xxxxxxxxx>
  • References: <6d70012a0909180210y411ab8c8nd89c4e408849276@xxxxxxxxxxxxxx> <4AB356E2.3040809@xxxxxxxxx>

óÐÁÓÉÂÏ!

2009/9/18 Eugene Mychlo <myc@xxxxxxxxx>:
> Nikita Larin wrote:
>>
>> äÏÂÒÙÊ ÄÅÎØ
>>
>> Nginx ÓÎÁÞÁÌÁ ÐÙÔÁÅÔÓÑ ÎÁÊÔÉ ÚÁÐÒÏÓ × memecached, ÅÓÌÉ ÎÅ ÎÁÈÏÄÉÔ, ÔÏ
>> ÐÅÒÅÐÒÁ×ÌÑÅÔ ÅÇÏ × ÁÐÁÞ. åÓÌÉ × ÁÐÁÞÅ ÓÄÅÌÁÔØ ÒÅÄÉÒÅËÔ (Location:
>> http://ya.ru/) ÔÏ ÁÐÁÞ ÏÔÄÁÓÔ ËÏÄ ÏÔ×ÅÔÁ 302. á ÎÇÉÎËÓ ÐÒÉ ÜÔÏÍ ÏÔÄÁÅÔ
>> ÏÛÉÂËÕ 404. ÷ÏÔ ËÕÓÏË ËÏÎÆÉÇÁ:
>>
>> nginx 0.7.62
>> location / {
>> š š š š š šdefault_type text/html;
>> š š š š š šproxy_set_header š šHost š š š š š š$host;
>> š š š š š šproxy_set_header š šX-Real-IP š š š $remote_addr;
>> š š š š š šproxy_set_header š šX-Forwarded-For $proxy_add_x_forwarded_for;
>> š š š š š šif ($request_method = POST) {
>> š š š š š š š šproxy_pass http://127.0.0.1:81;
>> š š š š š š š šbreak;
>> š š š š š š}
>> š š š š š šset $memcached_key $uri$args;
>> š š š š š šmemcached_pass š š šlocalhost:11211;
>>
>
> - š š š š š šerror_page š404 502 504 @fallback;
>
> + š š š š š error_page š404 502 504 = @fallback;
>
>> š š š š}
>>
>> š š š šlocation @fallback {
>> š š š š š šinternal;
>> š š š š š šroot /opt/www/tv100/htdocs/;
>> š š š š š šindex šindex.php index.html index.htm;
>> š š š š š šproxy_pass http://127.0.0.1:81;
>> š š š š š šproxy_set_header š šHost š š š š š š$host;
>> š š š š š šproxy_set_header š šX-Real-IP š š š $remote_addr;
>> š š š š š šproxy_set_header š šX-Forwarded-For $proxy_add_x_forwarded_for;
>> š š š š}
>>
>> óÐÁÓÉÂÏ.
>>
>>
>
>
> --
> Regards,
> Eugene Mychlo MYC-RIPE, EAMYC-RIPN
>
>
>



-- 
With best regards,
Nikita Larin


 




Copyright © Lexa Software, 1996-2009.