27 regels
558 B
ApacheConf
27 regels
558 B
ApacheConf
|
# disabling file access
|
||
|
|
||
|
Options -Indexes
|
||
|
|
||
|
<FilesMatch ".*">
|
||
|
<IfModule mod_authz_core.c>
|
||
|
# Apache 2.4
|
||
|
Require all denied
|
||
|
</IfModule>
|
||
|
<IfModule !mod_authz_core.c>
|
||
|
# Apache 2.2
|
||
|
order deny,allow
|
||
|
deny from all
|
||
|
</IfModule>
|
||
|
</FilesMatch>
|
||
|
|
||
|
<FilesMatch "\.(png|jpe?g|gif|css|js)$">
|
||
|
<IfModule mod_authz_core.c>
|
||
|
# Apache 2.4
|
||
|
Require all granted
|
||
|
</IfModule>
|
||
|
<IfModule !mod_authz_core.c>
|
||
|
# Apache 2.2
|
||
|
order deny,allow
|
||
|
allow from all
|
||
|
</IfModule>
|
||
|
</FilesMatch>
|