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 on;
|
||||||
fancyindex_exact_size off;
|
fancyindex_exact_size off;
|
||||||
add_header X-Frame-Options SAMEORIGIN;
|
add_header X-Frame-Options SAMEORIGIN;
|
||||||
|
error_page 404 /~$user/404.html;
|
||||||
|
|
||||||
location ~ [^/]\.php(/|$) {
|
location ~ [^/]\.php(/|$) {
|
||||||
include snippets/php_common;
|
include snippets/php_common;
|
||||||
|
|
|
@ -5,6 +5,8 @@ include snippets/php.conf;
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
ssi on;
|
ssi on;
|
||||||
|
|
||||||
|
error_page 404 /~$user/404.html;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri.html $uri/ @extensionless-php;
|
try_files $uri $uri.html $uri/ @extensionless-php;
|
||||||
fancyindex on;
|
fancyindex on;
|
||||||
|
|
Loading…
Reference in New Issue