mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
25 lines
650 B
ApacheConf
25 lines
650 B
ApacheConf
# Allow only static resources files
|
|
# - HTML not allowed as there could be some test pages calling server scripts or executing JS scripts
|
|
# - PHP not allowed as they should not be publicly accessible
|
|
|
|
# Apache 2.4
|
|
<ifModule mod_authz_core.c>
|
|
Require all denied
|
|
<FilesMatch ".+\.(css|scss|js|map|png|bmp|gif|jpe?g|svg|tiff|woff2?|ttf|eot1)$">
|
|
Require all granted
|
|
</FilesMatch>
|
|
</ifModule>
|
|
|
|
# Apache 2.2
|
|
<ifModule !mod_authz_core.c>
|
|
deny from all
|
|
Satisfy All
|
|
<FilesMatch ".+\.(css|scss|js|map|png|bmp|gif|jpe?g|svg|tiff|woff2?|ttf|eot)$">
|
|
Order Allow,Deny
|
|
Allow from all
|
|
</FilesMatch>
|
|
</ifModule>
|
|
|
|
# Apache 2.2 and 2.4
|
|
IndexIgnore *
|