allow users own 404 page

This commit is contained in:
creme 2020-02-29 14:28:34 +00:00
parent 3b5277276c
commit 1b0f2dcff3
2 changed files with 3 additions and 0 deletions

View File

@ -105,6 +105,7 @@ server {
fancyindex on;
fancyindex_exact_size off;
add_header X-Frame-Options SAMEORIGIN;
error_page 404 /~$user/404.html;
location ~ [^/]\.php(/|$) {
include snippets/php_common;

View File

@ -5,6 +5,8 @@ include snippets/php.conf;
include fastcgi_params;
ssi on;
error_page 404 /~$user/404.html;
location / {
try_files $uri $uri.html $uri/ @extensionless-php;
fancyindex on;