12 lines
236 B
ApacheConf
12 lines
236 B
ApacheConf
# Protect sensitive files from direct web access
|
|
<FilesMatch "\.(log|sql|env)$">
|
|
Order Allow,Deny
|
|
Deny from all
|
|
</FilesMatch>
|
|
|
|
# Protect error.log specifically
|
|
<Files "error.log">
|
|
Order Allow,Deny
|
|
Deny from all
|
|
</Files>
|