Вопрос по перловому модулю и error_page
Igor Sysoev
is at rambler-co.ru
Tue Dec 11 13:09:34 MSK 2007
On Mon, Dec 10, 2007 at 07:12:31PM +0200, Igor Savchenko wrote:
> Игорь, я так понимаю что использовать перловую субрутину внутри именованного
> локатиона в который я попадаю через error_page нельзя?
>
>
>
> Вот пример дебаг лога:
>
>
>
> 2007/12/10 12:07:56 [crit] 11795#0: *4 connect() to unix:/var/fastcgi.sock
> failed (2: No such file or directory) while connecting to upstream, client:
> 91.124.144.104, server: localhost, request: "GET /tests.php HTTP/1.1",
> upstream: "fastcgi://unix:/var/fastcgi.sock:", host: "ws.offload.ws"
>
> 2007/12/10 12:07:56 [debug] 11795#0: *4 http upstream connect: -5
>
> 2007/12/10 12:07:56 [debug] 11795#0: *4 http next upstream, 2
>
> 2007/12/10 12:07:56 [debug] 11795#0: *4 free rr peer 1 4
>
> 2007/12/10 12:07:56 [debug] 11795#0: *4 finalize http upstream request: 502
>
> 2007/12/10 12:07:56 [debug] 11795#0: *4 finalize http fastcgi request
>
> 2007/12/10 12:07:56 [debug] 11795#0: *4 free rr peer 0 0
>
> 2007/12/10 12:07:56 [debug] 11795#0: *4 close http upstream connection: 11
>
> 2007/12/10 12:07:56 [debug] 11795#0: *4 http finalize request: 502,
> "/tests.php?"
>
> 2007/12/10 12:07:56 [debug] 11795#0: *4 http special response: 502,
> "/tests.php"
>
> 2007/12/10 12:07:56 [debug] 11795#0: *4 http set discard body
>
> 2007/12/10 12:07:56 [debug] 11795#0: *4 named location: @errors
> "/tests.php?"
>
> 2007/12/10 12:07:56 [debug] 11795#0: *4 generic phase: 3
>
> 2007/12/10 12:07:56 [debug] 11795#0: *4 post rewrite phase: 4
>
> 2007/12/10 12:07:56 [debug] 11795#0: *4 generic phase: 5
>
> 2007/12/10 12:07:56 [debug] 11795#0: *4 generic phase: 6
>
> 2007/12/10 12:07:56 [debug] 11795#0: *4 access phase: 7
>
> 2007/12/10 12:07:56 [debug] 11795#0: *4 access phase: 8
>
> 2007/12/10 12:07:56 [debug] 11795#0: *4 post access phase: 9
>
> 2007/12/10 12:07:56 [debug] 11795#0: *4 perl handler
>
> 2007/12/10 12:07:56 [debug] 11795#0: *4 call_sv: 0
>
> 2007/12/10 12:07:56 [error] 11795#0: *4 call_sv("Handler::RequestHandler")
> failed: "Undefined subroutine & Handler:: RequestHandler called." while
> sending to client, client: 91.124.144.104, server: localhost, request: "GET
> /tests.php HTTP/1.1", upstream: "fastcgi://unix:/var/fastcgi.sock:", host:
> "host.com"
>
> 2007/12/10 12:07:56 [debug] 11795#0: *4 perl handler done: 500
>
>
>
>
>
> При этом Handler::RequestHandler определена и работает если ее вызвать
> используя классический пример юзания перлового модуля:
По идее, должно работать.
--
Игорь Сысоев
http://sysoev.ru
More information about the nginx-ru
mailing list