mirror of
https://github.com/YunoHost-Apps/matomo_ynh.git
synced 2024-09-03 19:45:56 +02:00
Update nginx.conf
This commit is contained in:
parent
693e13bb7f
commit
0d56e55242
1 changed files with 3 additions and 12 deletions
|
@ -38,19 +38,10 @@ location __PATH__/ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^__PATH__/tmp/ {
|
## disable all access to the following directories
|
||||||
|
location ~ ^__PATH__/(config|tmp|core|lang) {
|
||||||
deny all;
|
deny all;
|
||||||
return 403;
|
return 403; # replace with 404 to not show these directories exist
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^__PATH__/core/ {
|
|
||||||
deny all;
|
|
||||||
return 403;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^__PATH__/lang/ {
|
|
||||||
deny all;
|
|
||||||
return 403;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^__PATH__/\.ht {
|
location ~ ^__PATH__/\.ht {
|
||||||
|
|
Loading…
Reference in a new issue