Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
media [2016/08/31 16:38] tower old revision restored (2016/02/27 19:59) |
media [2016/08/31 16:40] (current) tower [Unix-type systems] |
||
---|---|---|---|
Line 170: | Line 170: | ||
<file apache .htaccess.security> | <file apache .htaccess.security> | ||
- | order allow,deny | + | <IfModule mod_authz_host> |
- | deny from all | + | Require all denied |
+ | </IfModule> | ||
+ | <IfModule !mod_authz_host> | ||
+ | Order allow,deny | ||
+ | Deny from all | ||
+ | </IfModule> | ||
<FilesMatch "\.(gif|jpe?g|png)$"> | <FilesMatch "\.(gif|jpe?g|png)$"> | ||
- | order allow,deny | + | <IfModule mod_authz_host> |
- | allow from all | + | Require all granted |
+ | </IfModule> | ||
+ | <IfModule !mod_authz_host> | ||
+ | Order allow,deny | ||
+ | Allow from all | ||
+ | </IfModule> | ||
</FilesMatch> | </FilesMatch> | ||
Line 196: | Line 206: | ||
<code> | <code> | ||
<FilesMatch "\.(gif|jpe?g|png|pdf)$"> | <FilesMatch "\.(gif|jpe?g|png|pdf)$"> | ||
- | order allow,deny | + | |
- | allow from all | + | |
</FilesMatch> | </FilesMatch> | ||
</code> | </code> |