Protect config files from public access
This commit is contained in:
parent
d3003715dc
commit
3be0a51c75
2 changed files with 9 additions and 0 deletions
|
@ -52,6 +52,10 @@ server {
|
|||
deny all;
|
||||
return 403;
|
||||
}
|
||||
location ^~ /webmum/config {
|
||||
deny all;
|
||||
return 403;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -81,6 +85,10 @@ server {
|
|||
deny all;
|
||||
return 403;
|
||||
}
|
||||
location ^~ /config {
|
||||
deny all;
|
||||
return 403;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
|
1
config/.htaccess
Normal file
1
config/.htaccess
Normal file
|
@ -0,0 +1 @@
|
|||
Deny from all
|
Loading…
Add table
Reference in a new issue