ðòïåëôù 


  áòèé÷ 


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]

Re: error_page + FastCGI



Hello!

On Mon, Aug 15, 2011 at 10:27:48AM +0400, Valentin Vesvalo wrote:

> ????????????.
> 
> ?? ??????? ??????????? ? ?????????? ????????? error_page.
> 
> ??????? nginx (0.8.55), ???????????? ??????? ?? php-fpm.
> ????????? ???????? ???????? ???? ? ?????? ?????? 50x ??? ??????????
> php-????????.
> 
> ???????? ? ???, ??? ????????? error_page ????????????, ???? php-fpm
> ?????? ????? ??? ?????????? ???????, ???????????????? header ?? ????????
> 500:
> <?php
> header('Status: 500',true,500);
> 
> ??????? header('HTTP/1.1 500 Internal Server Error',true,500) ??? ?? ??
> ???????? ? ????????? ??????????.
> 
> ???? ?? php-fpm ?????? ?????????, ?? error_page ???????????? ??? ?????.
> 
> ? ??? ????? ???? ???????
> 
> ? ??????? ????????? ????????? ???????:
> 
> location = /500.html {
>   root   html;
> }
> 
> location ~ \.php$ {
>  fastcgi_pass   localhst;
>  fastcgi_index  index.php;
>  include        fastcgi_params;
>  fastcgi_param  SCRIPT_FILENAME  /wwwroot/test/public$fastcgi_script_name;
>  error_page 500 501 502 503 = /500.html;
> }

http://sysoev.ru/nginx/docs/http/ngx_http_fastcgi_module.html#fastcgi_intercept_errors

Maxim Dounin

p.s. Please fix charset in your messages, this one is unreadable 
except in html part.  And please fix your mail client not to send 
html.  Thank you.

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.