Вопрос по перловому модулю и error_page
Igor Savchenko
dicsydel at gmail.com
Mon Dec 10 20:12:31 MSK 2007
Игорь, я так понимаю что использовать перловую субрутину внутри именованного
локатиона в который я попадаю через 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 определена и работает если ее вызвать
используя классический пример юзания перлового модуля:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20071210/e2ebb929/attachment.html>
More information about the nginx-ru
mailing list