php-fpm and 404

Igor Sysoev is at rambler-co.ru
Tue Oct 7 19:30:06 MSD 2008


On Tue, Oct 07, 2008 at 07:20:38PM +0400, Dmitry Morozovsky wrote:

> Коллеги,
> 
> чего-то я очевидного не замечаю:
> 
>     server {
>         include         listen.conf;
>         server_name     xxxxx;
> 
>         error_page      404 =   /404.php;
> 
>         location ~* \.(ico|jpg|jpeg|gif|png|mp3|avi|mpg|mpeg|txt|css|wml|swf)$ {
>                 charset off;
>                 root   /$sroot;
>         }
> 
>         location / {
>                 root            /$sroot;
>                 fastcgi_pass    unix:/www/rinet/sock/php-fpm.sock;
>                 fastcgi_index   index.php;
>                 include         fastcgi_params;
>                 fastcgi_param   SCRIPT_FILENAME  /$sroot$fastcgi_script_name;
>                 fastcgi_read_timeout 120;
>         }
>     }
> 
> 404.php не вызывается, не то вызывается с неверными параметрами: получаю 
> "no input files specified"
> 
> пните, пожалуйста, в нужном направлении.

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


-- 
Игорь Сысоев
http://sysoev.ru





More information about the nginx-ru mailing list