Welcome! Log In Create A New Profile

Advanced

Re: проблема с настройкой nginx+Tomcat

Sergej Kandyla
April 08, 2010 04:54AM
Дмитрий Кубышев wrote:
> Настраиваю связку nginx с Tomcat. Всё более-менее работает, за
> исключением одного момента - при отправке форм методом POST (формы
> поиска и логина) - возврщается 502 ошибка. такое ощущение что до
> томката запросы не доходят.

Конфиги в студию.
Томкат также может обрабатывать реквест слишком долго, из-за чего и 502
- понять proxy таймауты.
и что в error_log.


>
> log:
> 2010/04/08 12:35:59 [debug] 1984#3556: worker cycle
> 2010/04/08 12:35:59 [debug] 1984#3556: select event: fd:248 wr:0
> 2010/04/08 12:35:59 [debug] 1984#3556: select event: fd:320 wr:0
> 2010/04/08 12:35:59 [debug] 1984#3556: select timer: 500
> 2010/04/08 12:35:59 [debug] 1984#3556: select ready 1
> 2010/04/08 12:35:59 [debug] 1984#3556: select read 320
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 post event 007B38C0
> 2010/04/08 12:35:59 [debug] 1984#3556: timer delta: 0
> 2010/04/08 12:35:59 [debug] 1984#3556: posted events 007B38C0
> 2010/04/08 12:35:59 [debug] 1984#3556: posted event 007B38C0
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 delete posted event 007B38C0
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 malloc: 00784EA0:720
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 malloc: 0078E4C8:1024
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 malloc: 0078A460:4096
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http process request line
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 WSARecv: fd:320 rc:0 716 of 1024
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http request line: "POST
> /hmao/admin/access_denied.htm HTTP/1.1"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http uri:
> "/hmao/admin/access_denied.htm"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http args: ""
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http exten: "htm"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http process request header line
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http header: "Host:
> jupiter:8882"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http header: "User-Agent:
> Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.3)
> Gecko/20100401 Firefox/3.6.3"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http header: "Accept:
> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http header:
> "Accept-Language: ru,en-us;q=0.7,en;q=0.3"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http header:
> "Accept-Encoding: gzip,deflate"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http header:
> "Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http header: "Keep-Alive: 115"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http header: "Connection:
> keep-alive"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http header: "Referer:
> http://jupiter:8882/hmao/"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http header: "Cookie:
> JSESSIONID=570B6C3B0EB5B5125408180E537A984D"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http header: "Pragma: no-cache"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http header: "Cache-Control:
> no-cache"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http header: "Content-Type:
> application/x-www-form-urlencoded"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http header:
> "Content-Length: 111"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http header done
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 event timer del: 320: 3700467006
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 generic phase: 0
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 generic phase: 1
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 test location: "/"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 test location: ~
> "^.+\.(jpg|jpeg|gif|js|css)$"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 using configuration "/"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http cl:111 max:1048576
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 generic phase: 3
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 post rewrite phase: 4
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 generic phase: 5
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 generic phase: 6
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 generic phase: 7
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 access phase: 8
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 access phase: 9
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 post access phase: 10
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http client request body
> preread 111
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http init upstream, client
> timer: 0
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http script copy: "X-Real-IP: "
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http script var: "192.168.21.58"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http script copy: "
> "
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http script copy: "Host: "
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http script var: "jupiter:8882"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http script copy: "
> "
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http script copy:
> "X-Forwarded-For: "
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http script var: "192.168.21.58"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http script copy: "
> "
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http script copy:
> "Connection: close
> "
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http proxy header:
> "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.3)
> Gecko/20100401 Firefox/3.6.3"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http proxy header: "Accept:
> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http proxy header:
> "Accept-Language: ru,en-us;q=0.7,en;q=0.3"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http proxy header:
> "Accept-Encoding: gzip,deflate"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http proxy header:
> "Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http proxy header: "Referer:
> http://jupiter:8882/hmao/"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http proxy header: "Cookie:
> JSESSIONID=570B6C3B0EB5B5125408180E537A984D"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http proxy header: "Pragma:
> no-cache"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http proxy header:
> "Cache-Control: no-cache"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http proxy header:
> "Content-Type: application/x-www-form-urlencoded"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http proxy header:
> "Content-Length: 111"
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http proxy header:
> "POST /hmao/admin/access_denied.htm HTTP/1.0
> X-Real-IP: 192.168.21.58
> Host: jupiter:8882
> X-Forwarded-For: 192.168.21.58
> Connection: close
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.3)
> Gecko/20100401 Firefox/3.6.3
> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Language: ru,en-us;q=0.7,en;q=0.3
> Accept-Encoding: gzip,deflate
> Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7
> Referer: http://jupiter:8882/hmao/
> Cookie: JSESSIONID=570B6C3B0EB5B5125408180E537A984D
> Pragma: no-cache
> Cache-Control: no-cache
> Content-Type: application/x-www-form-urlencoded
> Content-Length: 111
>
> "
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http cleanup add: 0078B040
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 get rr peer, try: 1
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 socket 336
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 connect to
> 192.168.20.70:8180 http://192.168.20.70:8180, fd:336 #2
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 select add event fd:336 ev:0
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 select add event fd:336 ev:1
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http upstream connect: -2
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 event timer add: 336:
> 60000:3700467006
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http finalize request: -4,
> "/hmao/admin/access_denied.htm?" a:1, c:2
> 2010/04/08 12:35:59 [debug] 1984#3556: *1 http request count:2 blk:0
>


_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

проблема с настройкой nginx+Tomcat

Дмитрий Кубышев April 08, 2010 04:38AM

Re: проблема с настройкой nginx+Tomcat

Sergej Kandyla April 08, 2010 04:54AM

Re: проблема с настройкой nginx+Tomcat

Дмитрий Кубышев April 08, 2010 05:46AM

Re: проблема с настройкой nginx+Tomcat

Oleksandr V. Typlyns'kyi April 08, 2010 07:48AM

Re: проблема с настройкой nginx+Tomcat

Дмитрий Кубышев April 08, 2010 08:06AM

Re: проблема с настройкой nginx+Tomcat

Дмитрий Кубышев April 08, 2010 08:08AM

Re: проблема с настройкой nginx+Tomcat

Sergej Kandyla April 08, 2010 08:50AM

Re: проблема с настройкой nginx+Tomcat

Дмитрий Кубышев April 08, 2010 09:08AM

Re: проблема с настройкой nginx+Tomcat

Sergej Kandyla April 08, 2010 09:26AM

Re: проблема с настройкой nginx+Tomcat

Дмитрий Кубышев April 08, 2010 09:36AM

Re: проблема с настройкой nginx+Tomcat

Дмитрий Кубышев April 08, 2010 09:46AM

Re: проблема с настройкой nginx+Tomcat

Дмитрий Кубышев April 09, 2010 03:58AM

Re: проблема с настройкой nginx+Tomcat

Andrey N. Oktyabrski April 09, 2010 04:34AM

Re: проблема с настройкой nginx+Tomcat

Дмитрий Кубышев April 09, 2010 05:32AM

Re: проблема с настройкой nginx+Tomcat

Andrey N. Oktyabrski April 09, 2010 07:12AM

Re: проблема с настройкой nginx+Tomcat

Дмитрий Кубышев April 09, 2010 07:36AM

Re: проблема с настройкой nginx+Tomcat

silly sad April 09, 2010 07:50AM

Re: проблема с настройкой nginx+Tomcat

Andrey N. Oktyabrski April 09, 2010 08:00AM

Re: проблема с настройкой nginx+Tomcat

Oleksandr V. Typlyns'kyi April 08, 2010 08:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 308
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready