mirror of
https://github.com/YunoHost-Apps/my_webapp_ynh.git
synced 2024-09-03 19:46:26 +02:00
Update default config about the http error
This commit is contained in:
parent
7029f6eb85
commit
6095c6c21f
1 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@ location __PATH__/ {
|
|||
|
||||
# Default indexes and catch-all
|
||||
index index.html index.php;
|
||||
try_files $uri $uri/ __PATH__/index.php?$args;
|
||||
try_files $uri $uri/ __PATH__/index.php?$args =404;
|
||||
|
||||
# Prevent useless logs
|
||||
location = __PATH__/favicon.ico {
|
||||
|
@ -20,12 +20,12 @@ location __PATH__/ {
|
|||
access_log off;
|
||||
}
|
||||
|
||||
error_page 404 error/404.html;
|
||||
# Build error access
|
||||
error_page 404 /404.html;
|
||||
location = __PATH__/error/404.html {
|
||||
internal;
|
||||
}
|
||||
|
||||
|
||||
# Deny access to hidden files and directories
|
||||
location ~ ^__PATH__/(.+/|)\.(?!well-known\/) {
|
||||
deny all;
|
||||
|
|
Loading…
Add table
Reference in a new issue