mirror of https://git.envs.net/envs/ops.git
allow users own 404 page
This commit is contained in:
parent
3b5277276c
commit
1b0f2dcff3
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue