ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Вопрос по перловому модулю и error_page


  • To: <nginx-ru@xxxxxxxxx>
  • Subject: Вопрос по перловому модулю и error_page
  • From: "Igor Savchenko" <dicsydel@xxxxxxxxx>
  • Date: Mon, 10 Dec 2007 19:12:31 +0200
  • Content-language: en-us
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date:message-id:mime-version:content-type:x-mailer:content-language:thread-index; bh=mNd9iXr8dsnXsR7vOXmUUN6CeSmZMj4aiCB3hW8XZ/4=; b=ePKXuHDngr6Cce8bw0rUuXjGibFpy2GBeeOfLVxWKMY80gvjJ3gAV3UJIrMWdaEFQ5a0GFqzCBtkFB3t3pW7qTiM8BTMdOViIi6utpFLgbK532JHsJHmj8ZQjSLfkdlFiD74tX0CpkM31GY+iszY8kOlw+VgJDifbJRBxNsDojY=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type:x-mailer:content-language:thread-index; b=R+v8nOCRNmakMS2twzLdL5Z1CyzrCRxhSXG/6liqsSZjgOAQghuY3MVRVriT6KZ67MMfLTA3r+gjBtyiRza2cVibC0QNxX/oIGZSewwUznuFj8RZNSWR7DvxYIoMBMOZB6iKBg4A7GNl8JUXLzQPAIPoIIaYSR4+dkK0/iTj0Is=
  • Thread-index: Acg7T8PHIcpSLXLeTOKtcdVS1vXcEQAAAl4Q

Игорь, я так понимаю что использовать перловую субрутину внутри именованного локатиона в который я попадаю через 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 определена и работает если ее вызвать используя классический пример юзания перлового модуля…

 

 



 




Copyright © Lexa Software, 1996-2009.