Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Вопрос по перловому модулю и error_page
- To: <nginx-ru@xxxxxxxxx>
- Subject: RE: Вопрос по перловому модулю и error_page
- From: "Igor Savchenko" <dicsydel@xxxxxxxxx>
- Date: Thu, 13 Dec 2007 11:56:23 +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:references:in-reply-to:subject:date:message-id:mime-version:content-type:content-transfer-encoding:x-mailer:content-language:thread-index:x-cr-hashedpuzzle:x-cr-puzzleid; bh=vZPSKcQpAYallIWfz+5GJHgx6JjVw4QbvNDtXZWtsBk=; b=T8IkuPhMJUXImfK7O2GIHAAPotmH3mH+d3LcPxS8JxlMp1wix498hV7wHa67XqIi5S1wjDDjoJiC34HEG6E2SWzDbVwB0WnUSr6d90xCAJ6Pzz3xVb/PEs48jFu/4eGlFkKe7IjwKivKOQHpHb4NPlbmc8li9y9E1/77QaZgZZ0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:references:in-reply-to:subject:date:message-id:mime-version:content-type:content-transfer-encoding:x-mailer:content-language:thread-index:x-cr-hashedpuzzle:x-cr-puzzleid; b=E85/p5MoB/9s9GdKiLmj5yI8BFk+CQf+AtemXe36P5+atR3agWwoEhyJbv/BZ7avs+2uJK6MxUVAbZ+urfYM3irkszeIv0JxgiBIZNxBWrzQ8TK5WXu8HC6+pypwB3rnTjzKdR1q1tIpa5pzl5JzM8xl3B+FqVqQUTIgjiy3CwE=
- In-reply-to: <20071212092606.GJ23898@xxxxxxxxxxxxx>
- References: <004c01c83b4f$dc3d28f0$94b77ad0$@com> <20071211100934.GC5350@xxxxxxxxxxxxx> <006e01c83be0$3dffb360$b9ff1a20$@com> <20071212092606.GJ23898@xxxxxxxxxxxxx>
- Thread-index: Acg8oUCGzrcs+SYsSUuE/xIfsILpSwAzBDPA
> У меня не воспроизводится.
Кусок конфига:
location ~* \.php$ {
fastcgi_pass unix:/var/fastcgi.sock;
fastcgi_index index.php;
fastcgi_intercept_errors on;
fastcgi_connect_timeout 10;
fastcgi_send_timeout 10;
fastcgi_read_timeout 3;
...
client_body_in_file_only clean;
client_body_buffer_size 8k;
error_page 404 =302 /docs;
#error_page 500 501 502 503 504 = @errors;
error_page 500 501 502 503 504 /123.gif;
}
location @errors
{
perl Perl::Handler;
}
#L1
location ~* \.(gif|jpg|jpeg|png|ttf)$ {
perl Perl::Handler;
}
При таком конфиге если при запросе к fastcgi возникла 504 то
Perl::Handler вызовится нормально из локатиона " location ~*
\.(gif|jpg|jpeg|png|ttf)$ ".
Если закоментить " error_page 500 501 502 503 504 /123.gif;" и
раскоментить " error_page 500 501 502 503 504 = @errors;"
то при ошибке и попаданию запроса в @errors в дебуг лог валится:
2007/12/13 04:53:59 [error] 2541#0: *1 call_sv("Perl::Handler")
failed: "Undefined subroutine &Perl::Handler called." while sending to
client, client: xxx.xxx.xxx.xxx, server: localhost, request: "GET /test.php
HTTP/1.1", upstream: "fastcgi://unix:/var/fastcgi.sock:", host:
"ec2-72-44-57-18.z-1.compute-1.amazonaws.com"
И возвращается 500 ошибка.
Если нужны дополнительные данные, только скажите какие.
|