Welcome! Log In Create A New Profile

Advanced

Re: error_page + FastCGI

Maxim Dounin
August 15, 2011 02:52AM
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@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

error_page + FastCGI

Valentin Vesvalo August 15, 2011 02:30AM

Re: error_page + FastCGI

Maxim Dounin August 15, 2011 02:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 154
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready