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
97d5558ebe
commit
041bc3c460
1 changed files with 16 additions and 1 deletions
|
@ -35,7 +35,22 @@ location ^~ __PATH__/ {
|
|||
}
|
||||
|
||||
## disable all access to the following directories
|
||||
location ~ ^__PATH__/(config/|tmp/|core/|lang/) {
|
||||
location ^~ __PATH__/config/ {
|
||||
deny all;
|
||||
return 403;
|
||||
}
|
||||
|
||||
location ^~ __PATH__/tmp/ {
|
||||
deny all;
|
||||
return 403;
|
||||
}
|
||||
|
||||
location ^~ __PATH__/core/ {
|
||||
deny all;
|
||||
return 403;
|
||||
}
|
||||
|
||||
location ^~ __PATH__/lang/ {
|
||||
deny all;
|
||||
return 403;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue