1
0
Fork 0
mirror of https://github.com/ThomasGsp/HyperProxmox.git synced 2025-03-09 15:40:18 +00:00
HyperProxmox/system/BASE_SOFT/APACHE/2.4/conf.d/security.conf
thomas.guiseppin 5352a2b94a first commit
2017-10-21 22:04:42 +02:00

15 lines
499 B
Text

## Block access to SCM directories.
<DirectoryMatch ".*\.(svn|git|bzr)/.*">
Require all denied
# Don't add here, extensions like .sql .bak .ini .log ... Instead use apache_block['dot']
</DirectoryMatch>
## Block access to backup and source files
<FilesMatch "(\.(bak|config|sql|ini|log|sh|inc|swp)|~)$">
Require all denied
# Don't add here, scm like .git .svn .bzr ... Instead use apache_block['scm']
</FilesMatch>
<IfModule mod_headers.c>
RequestHeader unset Proxy
</IfModule>