ПРОЕКТЫ 


  АРХИВ 


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: кеширование


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: кеширование
  • From: Roxis <roxis@xxxxxxx>
  • Date: Thu, 21 Jun 2007 10:40:05 +0200
  • Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:subject:date:references:in-reply-to:x-mailer:mime-version:content-type:content-transfer-encoding:content-disposition:message-id:sender; b=A6noD+J9bFtddvYGzV30Bdt57npJWlb03FXvQXMy+AqRfh0Z9MloJoAu6swHDeq2afPzzledlxIL+iVtnoO2Gsmcu+EpKB962dAioSw3JIlmxmCE1DDat0P2SwP3tv88PKMGt1AwsoCVleY1YT3GHD5cIxvqEtFnF0/bil2NVK4=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:references:in-reply-to:x-mailer:mime-version:content-type:content-transfer-encoding:content-disposition:message-id:sender; b=Utu/7X9byg4NLR3ecVmzo9gBYYjtI++0om5v0pIJh2PnApZty2FC6LPSnZNKGBZlcVSPSdPzXj5q2+9EkZ6r8cEI2qc4fNEyVtAy4tWuDt987d/j26nHhBIXrnUBvuGuPUzcQ1YKvUF2EnEcwHOa9sjIHBgnsrHs6WosvNzABLA=
  • In-reply-to: <467A3454.7090306@xxxxxxxxxxxxxxxxx>
  • References: <467A2C27.90908@xxxxxxxxx> <467A315E.6040403@xxxxxxxxxxx> <467A3454.7090306@xxxxxxxxxxxxxxxxx>

On Thursday 21 June 2007, Andrey Y. Ostanovsky wrote:
> Да-да, кто бы еще популярно показал, как это делается без переделки уже
> имеющегося php кода...

    location / {
        proxy_pass http://127.0.0.1:81;
    }

    location = /cache {
        proxy_set_header Nginx-Uri $request_uri;
        proxy_set_header Nginx-Host $host;
        proxy_pass http://127.0.0.1:81/cache.php;
    }

    location ~* \.(php)$ {
        root /tmp/cache;
        error_page 404 = /cache;
    }



 




Copyright © Lexa Software, 1996-2009.