0

My Server doesn't want to display a custom 500 error page.

The error page for the 500 error is here:

https://aixspace.de/errorpages/500-504/500.html

these are my vhost configs:

server {
    listen   80; ## listen for ipv4; this line is default and implied
    #listen   [::]:80 default ipv6only=on; ## listen for ipv6
    root /usr/share/nginx/www;
    ...


    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    #
    location ~ \.php$ {
            try_files $uri =404;
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            fastcgi_pass unix:/tmp/php5-fpm.sock;
            fastcgi_index index.php;
            include fastcgi_params;
    }

    # deny access to .htaccess files, if Apache's document root
    # concurs with nginx's one
    #
    location ~ /\.ht {
            deny all;
    }

}

server { listen 443; }

    #Errorpages

    error_page 500 /500.html;
    location = /errorpages/500-504/500.html {
       root  /usr/share/nginx/www;
   }

    location ~ /\.ht {

} }

Does anyone have any idea why the server does not work with this error page?

squillman
  • 37,618
  • 10
  • 90
  • 145

0 Answers0