mirror of
https://github.com/YunoHost-Apps/my_webapp_ynh.git
synced 2024-09-03 19:46:26 +02:00
Add error 404 code
This commit is contained in:
parent
bf5d3ed5d5
commit
7029f6eb85
1 changed files with 6 additions and 0 deletions
|
@ -20,6 +20,12 @@ location __PATH__/ {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
error_page 404 error/404.html;
|
||||||
|
location = __PATH__/error/404.html {
|
||||||
|
internal;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# Deny access to hidden files and directories
|
# Deny access to hidden files and directories
|
||||||
location ~ ^__PATH__/(.+/|)\.(?!well-known\/) {
|
location ~ ^__PATH__/(.+/|)\.(?!well-known\/) {
|
||||||
deny all;
|
deny all;
|
||||||
|
|
Loading…
Add table
Reference in a new issue