Nginx custom error_page

Hello, I wanted to set a custom error_page by setting up:
if (!-e $request_filename) {
rewrite ^/de/(.*)$ /de/vbseo.php last;
}
if (!-e means if the requestes file don’t exists right?!

nginx server 0.8.32

Here is my config: http://pastebin.com/2krFJ3sf

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,84088,84088#msg-84088

Oh and I can’t setup a custom error_page with error_page 404 =
/404.html; It only shows me error_pages from .php and not from .html.
-.-

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,84088,84096#msg-84096

On Sat, May 08, 2010 at 12:29:29AM -0400, kleinchris wrote:

Hello, I wanted to set a custom error_page by setting up:
if (!-e $request_filename) {
rewrite ^/de/(.*)$ /de/vbseo.php last;
}
if (!-e means if the requestes file don’t exists right?!

nginx server 0.8.32

Here is my config: http://pastebin.com/2krFJ3sf

    location / {
        index index.php index.html index.htm;
    }

    location ~ ^(?<script>.+\.php)(?<path_info>/.+)?$ {

        try_files  $script  =404;

        limit_req zone=antiddos burst=5 nodelay;

        include /etc/nginx/fastcgi_params;
        fastcgi_pass unix:/var/fastcgi/www-data.php.socket;
        fastcgi_param SCRIPT_FILENAME $document_root$script;
        fastcgi_param PATH_INFO $path_info;
        fastcgi_param SCRIPT_NAME $script;
    }

    location ~ 

^/de/(?(urllist|sitemap_).*.(xml|txt)(.gz)?)$ {
limit_req zone=antiddos burst=5 nodelay;

        include /etc/nginx/fastcgi_params;
        fastcgi_pass unix:/var/fastcgi/www-data.php.socket;
        fastcgi_param SCRIPT_FILENAME
                    $document_root/de/vbseo_sitemap/vbseo_getsitemap.php;
        fastcgi_param QUERY_STRING  sitemap=$sitemap;
        fastcgi_param SCRIPT_NAME 

/de/vbseo_sitemap/vbseo_getsitemap.php;
}

    location /de/ {
        index index.php index.html index.htm;

        try_files  $uri  $uri  /de/vbseo.php;
    }


Igor S.
http://sysoev.ru/en/

On Sat, May 08, 2010 at 12:50:00PM +0400, Igor S. wrote:

Here is my config: http://pastebin.com/2krFJ3sf

        include /etc/nginx/fastcgi_params;
        try_files  $uri  $uri  /de/vbseo.php;
  •         try_files  $uri  $uri  /de/vbseo.php;
    
  •         try_files  $uri  $uri/  /de/vbseo.php;
    
    }


Igor S.
http://sysoev.ru/en/