Hello,
I've created the following error pages:
Like you can see they're not the default .shtml extenstion. I tried to search where nginx includes these default error pages unfortunately I was not able to find it on my CentOS machine. I thought it might have some default error pages where you don't have to point nginx at, using directives in some kind of .conf file. So I tried to override this default configuration by added the following to /etc/nginx/nginx.conf.
Unfortunately nothing changed. What am I doing wrong? Is it possible to use .php error pages?
I've created the following error pages:
Code:
400.php
401.php
403.php
404.php
500.php
Like you can see they're not the default .shtml extenstion. I tried to search where nginx includes these default error pages unfortunately I was not able to find it on my CentOS machine. I thought it might have some default error pages where you don't have to point nginx at, using directives in some kind of .conf file. So I tried to override this default configuration by added the following to /etc/nginx/nginx.conf.
Code:
error_page 400 /400.php;
error_page 401 /401.php;
error_page 403 /403.php;
error_page 404 /404.php;
error_page 500 /500.php;
Unfortunately nothing changed. What am I doing wrong? Is it possible to use .php error pages?