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