Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 56 lines (44 sloc) 1.311 kb
ea7c46b @thomascube Improved reading of POST and GET values
thomascube authored
1 # AddDefaultCharset UTF-8
0d1dd7c @thomascube Fix message list selection + new pngbehavior + use strpos() instead of s...
thomascube authored
2 AddType text/x-component .htc
ef9641e @thomascube Use IfModule directive in .htaccess (closes #1484381)
thomascube authored
3
34942eb @alecpl #1485375, #1485491
alecpl authored
4 <IfModule mod_php5.c>
aaa6ace @alecpl #1485460: session.gc_* moved to main .htaccess file
alecpl authored
5 php_flag display_errors Off
6 php_flag log_errors On
4b20e28 @thomascube Don't set php_value error_log in .htaccess by default
thomascube authored
7 # php_value error_log logs/errors
aaa6ace @alecpl #1485460: session.gc_* moved to main .htaccess file
alecpl authored
8
9 php_value upload_max_filesize 5M
2d1a451 @alecpl - suhosin.session.encrypt breaks Session handling (#1485846)
alecpl authored
10 php_value post_max_size 6M
11 php_value memory_limit 64M
aaa6ace @alecpl #1485460: session.gc_* moved to main .htaccess file
alecpl authored
12
6d479a6 @alecpl - remove set_magic_quotes_runtime() call, use set_time_limit() with @ (#...
alecpl authored
13 php_flag zlib.output_compression Off
14 php_flag magic_quotes_gpc Off
15 php_flag magic_quotes_runtime Off
16 php_flag zend.ze1_compatibility_mode Off
8328901 @till * using php_flag to turn it off (instead of php_value)
till authored
17 php_flag suhosin.session.encrypt Off
aaa6ace @alecpl #1485460: session.gc_* moved to main .htaccess file
alecpl authored
18
29640bc @thomascube Add (inactive) session.cookie_path line to .htaccess as suggested in #14...
thomascube authored
19 #php_value session.cookie_path /
5e8c772 @alecpl - Add ifModule statement for setting Options -Indexes in .htaccess file ...
alecpl authored
20 php_flag session.auto_start Off
aaa6ace @alecpl #1485460: session.gc_* moved to main .htaccess file
alecpl authored
21 php_value session.gc_maxlifetime 21600
22 php_value session.gc_divisor 500
23 php_value session.gc_probability 1
e86ff94 @alecpl #1485571: mbstring.func_overload forbidden
alecpl authored
24
25 # http://bugs.php.net/bug.php?id=30766
26 php_value mbstring.func_overload 0
34942eb @alecpl #1485375, #1485491
alecpl authored
27 </IfModule>
4e17e6c @thomascube Initial revision
thomascube authored
28
34942eb @alecpl #1485375, #1485491
alecpl authored
29 <IfModule mod_rewrite.c>
30 RewriteEngine On
68b9f36 @thomascube Replace some forgotten references to skins/default (#1488591)
thomascube authored
31 RewriteRule ^favicon\.ico$ skins/larry/images/favicon.ico
4b1d5d6 @alecpl Improve .htaccess rules to make it less easy to fingerprint roundcube ve...
alecpl authored
32 # security rules
d4d2e42 @raoulbhatia improve .htaccess security rules:
raoulbhatia authored
33 RewriteRule .git - [F]
34 RewriteRule ^/?(README(.md)?|INSTALL|LICENSE|SQL|bin|CHANGELOG)$ - [F]
e3f4275 @alecpl #1485375: added favicon.ico redirect
alecpl authored
35 </IfModule>
d7f49d6 @thomascube Speedup UI by using CSS sprites and etags/expires/deflate for static fil...
thomascube authored
36
37 <IfModule mod_deflate.c>
38 SetOutputFilter DEFLATE
39 </IfModule>
40
41 <IfModule mod_headers.c>
42 # replace 'append' with 'merge' for Apache version 2.2.9 and later
8328901 @till * using php_flag to turn it off (instead of php_value)
till authored
43 #Header append Cache-Control public env=!NO_CACHE
d7f49d6 @thomascube Speedup UI by using CSS sprites and etags/expires/deflate for static fil...
thomascube authored
44 </IfModule>
45
46 <IfModule mod_expires.c>
47 ExpiresActive On
48 ExpiresDefault "access plus 1 month"
49 </IfModule>
50
2f14293 @thomascube Use filemtime for cache busting + better etag for static files
thomascube authored
51 FileETag MTime Size
5e8c772 @alecpl - Add ifModule statement for setting Options -Indexes in .htaccess file ...
alecpl authored
52
53 <IfModule mod_autoindex.c>
4b1d5d6 @alecpl Improve .htaccess rules to make it less easy to fingerprint roundcube ve...
alecpl authored
54 Options -Indexes
5e8c772 @alecpl - Add ifModule statement for setting Options -Indexes in .htaccess file ...
alecpl authored
55 </ifModule>
Something went wrong with that request. Please try again.