Aleksander Machniak
2016-05-22 77b5d7ee304a688a2eb115ce04b460b43c0dd700
commit | author | age
fd902c 1 # WARNING: For PHP 7 the module name in the line below need to be modified!
34942e 2 <IfModule mod_php5.c>
4c7a98 3 php_flag    display_errors  Off
AM 4 php_flag    log_errors      On
5 # php_value    error_log    logs/errors
aaa6ac 6
93e12f 7 php_value   upload_max_filesize   5M
AM 8 php_value   post_max_size         6M
4c7a98 9 php_value   memory_limit          64M
aaa6ac 10
4c7a98 11 php_flag    register_globals            Off
AM 12 php_flag    zlib.output_compression     Off
13 php_flag    magic_quotes_gpc            Off
14 php_flag    magic_quotes_runtime        Off
15 php_flag    suhosin.session.encrypt     Off
aaa6ac 16
4c7a98 17 #php_value   session.cookie_path     /
e2bcea 18 #php_value   session.hash_function   sha256
4c7a98 19 php_flag    session.auto_start       Off
AM 20 php_value   session.gc_maxlifetime   21600
21 php_value   session.gc_divisor       500
22 php_value   session.gc_probability   1
34942e 23 </IfModule>
4e17e6 24
34942e 25 <IfModule mod_rewrite.c>
0b9b9f 26 Options +FollowSymLinks
34942e 27 RewriteEngine On
aff970 28 RewriteRule ^favicon\.ico$ skins/larry/images/favicon.ico
88934b 29
2dade1 30 # security rules:
AM 31 # - deny access to files not containing a dot or starting with a dot
32 #   in all locations except installer directory
1c2aad 33 RewriteRule ^(?!installer|\.well-known\/|[a-zA-Z0-9]{16})(\.?[^\.]+)$ - [F]
2dade1 34 # - deny access to some locations
AM 35 RewriteRule ^/?(\.git|\.tx|SQL|bin|config|logs|temp|tests|program\/(include|lib|localization|steps)) - [F]
36 # - deny access to some documentation files
fd0583 37 RewriteRule /?(README\.md|composer\.json-dist|composer\.json|package\.xml|Dockerfile)$ - [F]
e3f427 38 </IfModule>
cb3ea1 39
d7f49d 40 <IfModule mod_deflate.c>
T 41 SetOutputFilter DEFLATE
42 </IfModule>
43
44 <IfModule mod_headers.c>
45 # replace 'append' with 'merge' for Apache version 2.2.9 and later
832890 46 #Header append Cache-Control public env=!NO_CACHE
348c53 47 # for better privacy/security ask browsers to not set the Referer
AM 48 #Header set Content-Security-Policy "referrer no-referrer"
d7f49d 49 </IfModule>
T 50
51 <IfModule mod_expires.c>
52 ExpiresActive On
53 ExpiresDefault "access plus 1 month"
54 </IfModule>
55
2f1429 56 FileETag MTime Size
5e8c77 57
A 58 <IfModule mod_autoindex.c>
4b1d5d 59 Options -Indexes
5e8c77 60 </ifModule>