This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
security [2019/11/11 15:23] k2patel [WebDAV Readonly mode] |
security [2020/08/10 02:35] (current) |
||
---|---|---|---|
Line 17: | Line 17: | ||
Make sure none of the configuration files get printed as pain text. | Make sure none of the configuration files get printed as pain text. | ||
<code bash> | <code bash> | ||
- | <FilesMatch ".+(\.pm|\.conf|\.htaccess|\.gitignore|config)$"> | + | <FilesMatch ".+(\.pm|\.conf|\.htaccess|\.gitignore|config)$"> |
Require all denied | Require all denied | ||
- | </FilesMatch> | + | </FilesMatch> |
+ | </code> | ||
+ | |||
+ | ==== Anything start with .(dot) ==== | ||
+ | Disable all files and folder start with .dot | ||
+ | <code bash> | ||
+ | <DirectoryMatch "^\.|\/\."> | ||
+ | Require all denied | ||
+ | </DirectoryMatch> | ||
+ | |||
+ | <LocationMatch "\/\."> | ||
+ | Require all denied | ||
+ | </LocationMatch> | ||
</code> | </code> |