worker_processesš 1;<br>error_logš logs/error.logš debug;<br>events {<br>ššš worker_connectionsš 1024;<br>}<br>http {<br>ššš includešššššš mime.types;<br>ššš default_typeš application/octet-stream;<br>ššš log_formatš mainš &#39;$remote_addr - $remote_user [$time_local] &quot;$request&quot; &#39;<br>
ššššššššššššššššššššš &#39;$status $body_bytes_sent &quot;$http_referer&quot; &#39;<br>ššššššššššššššššššššš &#39;&quot;$http_user_agent&quot; &quot;$http_x_forwarded_for&quot;&#39;;<br>ššš access_logš logs/access.logš main;<br>
ššš keepalive_timeoutš 65;<br><br>ššš server {<br>ššššššš listenšššššš 8882;<br><br>šš # ÜÔÏ ÔÏÍËÁÔÕ<br>šš location / {<br>ššš proxy_pass <a href="http://phobos:8180">http://phobos:8180</a>;<br>ššš #proxy_redirect <a href="http://admintest.systematic.ru:8980">http://admintest.systematic.ru:8980</a> <a href="http://admintest.systematic.ru:8882">http://admintest.systematic.ru:8882</a>;<br>
ššš proxy_buffer_size 16k;<br>ššš proxy_buffers 4 16k; <br>ššš proxy_set_headeršš X-Real-IP $remote_addr;<br>ššš proxy_set_headeršš Host $http_host;<br>ššš proxy_set_headeršš X-Forwarded-For $proxy_add_x_forwarded_for;<br>
<br>šš }<br><br>šš # ÜÔÏ ÓÁÍÉ<br>šššš location ~* ^.+\.(jpg|jpeg|gif|js|css)$ {<br>šššš root C:/admtymen_test;<br>šššš access_log off;<br>šššš expires 30d;<br>šš }<br>}<br>}<br><br>÷ÏÔ ËÏÎÆÉÇ. 502 ×Ù×ÁÌÉ×ÁÅÔÓÑ ÐÒÁËÔÉÞÅÓËÉ ÍÏÍÅÎÔÁÌØÎÏ. ïÞÅÎØ ÐÏÈÏÖÅ ÞÔÏ ÄÏ ÔÏÍËÁÔÁ ×ÏÏÂÝÅ ÎÅ ÄÏÈÏÄÉÔ.<br>
<br>÷ ÅÒÒÏÒ.ÌÏÇÅ:<br>*1 upstream prematurely closed connection while reading response header from upstream, client: 192.168.21.58, server: jupiter, request: &quot;POST /hmao/admin/access_denied.htm HTTP/1.1&quot;, upstream: &quot;<a href="http://192.168.20.70:8180/hmao/admin/access_denied.htm">http://192.168.20.70:8180/hmao/admin/access_denied.htm</a>&quot;, host: &quot;jupiter:8882&quot;, referrer: &quot;<a href="http://jupiter:8882/hmao/">http://jupiter:8882/hmao/</a>&quot;<br>
<br><div class="gmail_quote">8 ÁÐÒÅÌÑ 2010 Ç. 12:52 ÐÏÌØÚÏ×ÁÔÅÌØ Sergej Kandyla <span dir="ltr">&lt;<a href="mailto:sk.paix@gmail.com">sk.paix@gmail.com</a>&gt;</span> ÎÁÐÉÓÁÌ:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">äÍÉÔÒÉÊ ëÕÂÙÛÅ× wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
îÁÓÔÒÁÉ×ÁÀ Ó×ÑÚËÕ nginx Ó Tomcat. ÷Ó£ ÂÏÌÅÅ-ÍÅÎÅÅ ÒÁÂÏÔÁÅÔ, ÚÁ ÉÓËÌÀÞÅÎÉÅÍ ÏÄÎÏÇÏ ÍÏÍÅÎÔÁ - ÐÒÉ ÏÔÐÒÁ×ËÅ ÆÏÒÍ ÍÅÔÏÄÏÍ POST (ÆÏÒÍÙ ÐÏÉÓËÁ É ÌÏÇÉÎÁ) - ×ÏÚ×ÒÝÁÅÔÓÑ 502 ÏÛÉÂËÁ. ÔÁËÏÅ ÏÝÕÝÅÎÉÅ ÞÔÏ ÄÏ ÔÏÍËÁÔÁ ÚÁÐÒÏÓÙ ÎÅ ÄÏÈÏÄÑÔ.<br>

</blockquote>
<br></div>
ëÏÎÆÉÇÉ × ÓÔÕÄÉÀ.<br>
ôÏÍËÁÔ ÔÁËÖÅ ÍÏÖÅÔ ÏÂÒÁÂÁÔÙ×ÁÔØ ÒÅË×ÅÓÔ ÓÌÉÛËÏÍ ÄÏÌÇÏ, ÉÚ-ÚÁ ÞÅÇÏ É 502 - ÐÏÎÑÔØ proxy ÔÁÊÍÁÕÔÙ.<br>
É ÞÔÏ × error_log.<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">
<br>
log:<br>
2010/04/08 12:35:59 [debug] 1984#3556: worker cycle<br>
2010/04/08 12:35:59 [debug] 1984#3556: select event: fd:248 wr:0<br>
2010/04/08 12:35:59 [debug] 1984#3556: select event: fd:320 wr:0<br>
2010/04/08 12:35:59 [debug] 1984#3556: select timer: 500<br>
2010/04/08 12:35:59 [debug] 1984#3556: select ready 1<br>
2010/04/08 12:35:59 [debug] 1984#3556: select read 320<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 post event 007B38C0<br>
2010/04/08 12:35:59 [debug] 1984#3556: timer delta: 0<br>
2010/04/08 12:35:59 [debug] 1984#3556: posted events 007B38C0<br>
2010/04/08 12:35:59 [debug] 1984#3556: posted event 007B38C0<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 delete posted event 007B38C0<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 malloc: 00784EA0:720<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 malloc: 0078E4C8:1024<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 malloc: 0078A460:4096<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http process request line<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 WSARecv: fd:320 rc:0 716 of 1024<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http request line: &quot;POST /hmao/admin/access_denied.htm HTTP/1.1&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http uri: &quot;/hmao/admin/access_denied.htm&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http args: &quot;&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http exten: &quot;htm&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http process request header line<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http header: &quot;Host: jupiter:8882&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http header: &quot;User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http header: &quot;Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http header: &quot;Accept-Language: ru,en-us;q=0.7,en;q=0.3&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http header: &quot;Accept-Encoding: gzip,deflate&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http header: &quot;Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http header: &quot;Keep-Alive: 115&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http header: &quot;Connection: keep-alive&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http header: &quot;Referer: <a href="http://jupiter:8882/hmao/" target="_blank">http://jupiter:8882/hmao/</a>&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http header: &quot;Cookie: JSESSIONID=570B6C3B0EB5B5125408180E537A984D&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http header: &quot;Pragma: no-cache&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http header: &quot;Cache-Control: no-cache&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http header: &quot;Content-Type: application/x-www-form-urlencoded&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http header: &quot;Content-Length: 111&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http header done<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 event timer del: 320: 3700467006<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 generic phase: 0<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 generic phase: 1<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 test location: &quot;/&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 test location: ~ &quot;^.+\.(jpg|jpeg|gif|js|css)$&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 using configuration &quot;/&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http cl:111 max:1048576<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 generic phase: 3<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 post rewrite phase: 4<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 generic phase: 5<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 generic phase: 6<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 generic phase: 7<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 access phase: 8<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 access phase: 9<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 post access phase: 10<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http client request body preread 111<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http init upstream, client timer: 0<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http script copy: &quot;X-Real-IP: &quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http script var: &quot;192.168.21.58&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http script copy: &quot;<br>
&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http script copy: &quot;Host: &quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http script var: &quot;jupiter:8882&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http script copy: &quot;<br>
&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http script copy: &quot;X-Forwarded-For: &quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http script var: &quot;192.168.21.58&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http script copy: &quot;<br>
&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http script copy: &quot;Connection: close<br>
&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http proxy header: &quot;User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http proxy header: &quot;Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http proxy header: &quot;Accept-Language: ru,en-us;q=0.7,en;q=0.3&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http proxy header: &quot;Accept-Encoding: gzip,deflate&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http proxy header: &quot;Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http proxy header: &quot;Referer: <a href="http://jupiter:8882/hmao/" target="_blank">http://jupiter:8882/hmao/</a>&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http proxy header: &quot;Cookie: JSESSIONID=570B6C3B0EB5B5125408180E537A984D&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http proxy header: &quot;Pragma: no-cache&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http proxy header: &quot;Cache-Control: no-cache&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http proxy header: &quot;Content-Type: application/x-www-form-urlencoded&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http proxy header: &quot;Content-Length: 111&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http proxy header:<br>
&quot;POST /hmao/admin/access_denied.htm HTTP/1.0<br>
X-Real-IP: 192.168.21.58<br>
Host: jupiter:8882<br>
X-Forwarded-For: 192.168.21.58<br>
Connection: close<br>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3<br>
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8<br>
Accept-Language: ru,en-us;q=0.7,en;q=0.3<br>
Accept-Encoding: gzip,deflate<br>
Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7<br>
Referer: <a href="http://jupiter:8882/hmao/" target="_blank">http://jupiter:8882/hmao/</a><br>
Cookie: JSESSIONID=570B6C3B0EB5B5125408180E537A984D<br>
Pragma: no-cache<br>
Cache-Control: no-cache<br>
Content-Type: application/x-www-form-urlencoded<br>
Content-Length: 111<br>
<br>
&quot;<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http cleanup add: 0078B040<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 get rr peer, try: 1<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 socket 336<br></div></div>
2010/04/08 12:35:59 [debug] 1984#3556: *1 connect to <a href="http://192.168.20.70:8180" target="_blank">192.168.20.70:8180</a> &lt;<a href="http://192.168.20.70:8180" target="_blank">http://192.168.20.70:8180</a>&gt;, fd:336 #2<div class="im">
<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 select add event fd:336 ev:0<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 select add event fd:336 ev:1<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http upstream connect: -2<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 event timer add: 336: 60000:3700467006<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http finalize request: -4, &quot;/hmao/admin/access_denied.htm?&quot; a:1, c:2<br>
2010/04/08 12:35:59 [debug] 1984#3556: *1 http request count:2 blk:0<br>
 š<br>
</div></blockquote>
<br>
<br>
_______________________________________________<br>
nginx-ru mailing list<br>
<a href="mailto:nginx-ru@nginx.org" target="_blank">nginx-ru@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx-ru" target="_blank">http://nginx.org/mailman/listinfo/nginx-ru</a><br>
</blockquote></div><br>