Настраиваю связку nginx с Tomcat. Всё более-менее работает, за исключением одного момента - при отправке форм методом POST (формы поиска и логина) - возврщается 502 ошибка. такое ощущение что до томката запросы не доходят.<br>
<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/">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/">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/">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>2010/04/08 12:35:59 [debug] 1984#3556: *1 connect to <a href="http://192.168.20.70:8180">192.168.20.70:8180</a>, fd:336 #2<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>