<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=koi8-r">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=RU link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt'>Спасибо за ответ, теперь
работает.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt'>Получилось</span><span
lang=EN-US style='font-size:11.0pt'>:<o:p></o:p></span></p>
<p><span lang=EN-US> proxy_set_header Host $host;<o:p></o:p></span></p>
<p><span lang=EN-US> proxy_set_header X-Real-IP $remote_addr;<o:p></o:p></span></p>
<p><span lang=EN-US> proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;<o:p></o:p></span></p>
<p> <span lang=EN-US>proxy_cache test;<o:p></o:p></span></p>
<p><span lang=EN-US> proxy_ignore_headers Expires Cache-Control; <o:p></o:p></span></p>
<p><span lang=EN-US> location / {<o:p></o:p></span></p>
<p><span lang=EN-US>
ssi on;<o:p></o:p></span></p>
<p><span lang=EN-US>
proxy_pass
<a
href="http://127.0.0.1:8080" target="_blank">http://127.0.0.1:8080</a>;<o:p></o:p></span></p>
<p><span lang=EN-US>
proxy_cache_key
"$host$request_uri";<o:p></o:p></span></p>
<p><span lang=EN-US>
proxy_cache_valid
200 302 2h;<o:p></o:p></span></p>
<p><span lang=EN-US>
proxy_cache_valid
404 1m;<o:p></o:p></span></p>
<p><span lang=EN-US> } <o:p></o:p></span></p>
<p><span lang=EN-US> location /u_info.php {<o:p></o:p></span></p>
<p><span lang=EN-US>
proxy_pass
<a
href="http://127.0.0.1:8080/u_info.php" target="_blank">http://127.0.0.1:8080/u_info.php</a>;<o:p></o:p></span></p>
<p><span lang=EN-US> proxy_pass_header
Cookie;<o:p></o:p></span></p>
<p><span lang=EN-US>
proxy_cache_key "$host $cookie_log_cookie";<o:p></o:p></span></p>
<p><span lang=EN-US>
proxy_cache_valid 200 15m</span><o:p></o:p></p>
<p><span lang=EN-US> </span>}<span
lang=EN-US><o:p></o:p></span></p>
<p>Есть еще один момент. Кука устанавливается ( .<span lang=EN-US>domain</span>.<span
lang=EN-US>ex</span><span lang=EN-US> </span>), т.е. на все поддомены, если
авторизироваться на домене с приведенной выше конфигурацией, то кеш пользовательского
блока как бы залипает, а если авторизироваться на другом домене и прийти на
этот , то все отлично работает.<o:p></o:p></p>
<p>--<o:p></o:p></p>
<p>С уважением, Вячеслав<span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p></o:p></span></p>
<div>
<p class=MsoNormal><span style='color:#1F497D'>> </span>Добрый день,
небольшая поправочка должна помочь:<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><span style='color:#1F497D'>> </span>proxy_pass_header
Cookie;<br clear=all>
<span style='color:#1F497D'><o:p></o:p></span></p>
</div>
</div>
</body>
</html>