comparison etc/htaccess @ 38:ac106d4c8961 default tip

flip /etc/roundcube to point here
author Charlie Root
date Sat, 29 Dec 2018 05:39:53 -0500
parents
children
comparison
equal deleted inserted replaced
37:96515de44ecf 38:ac106d4c8961
1 # AddDefaultCharset UTF-8
2 AddType text/x-component .htc
3
4 <IfModule mod_php7.c>
5 php_flag display_errors Off
6 php_flag log_errors On
7 # php_value error_log logs/errors
8
9 php_value upload_max_filesize 5M
10 php_value post_max_size 6M
11 php_value memory_limit 64M
12
13 php_flag register_globals Off
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
18
19 #php_value session.cookie_path /
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
24 </IfModule>
25
26 <IfModule mod_rewrite.c>
27 Options +FollowSymLinks
28 RewriteEngine On
29 RewriteRule ^favicon\.ico$ skins/larry/images/favicon.ico
30
31 # security rules:
32 # - deny access to files not containing a dot or starting with a dot
33 # in all locations except installer directory
34 RewriteRule ^(?!installer|\.well-known\/|[a-f0-9]{16})(\.?[^\.]+)$ - [F]
35 # - deny access to some locations
36 RewriteRule ^/?(\.git|\.tx|SQL|bin|config|logs|temp|tests|program\/(include|lib|localization|steps)) - [F]
37 # - deny access to some documentation files
38 RewriteRule /?(README\.md|composer\.json-dist|composer\.json|package\.xml|Dockerfile)$ - [F]
39 </IfModule>
40
41 <IfModule mod_deflate.c>
42 SetOutputFilter DEFLATE
43 </IfModule>
44
45 <IfModule mod_headers.c>
46 # replace 'append' with 'merge' for Apache version 2.2.9 and later
47 #Header append Cache-Control public env=!NO_CACHE
48 </IfModule>
49
50 <IfModule mod_expires.c>
51 ExpiresActive On
52 ExpiresDefault "access plus 1 month"
53 </IfModule>
54
55 FileETag MTime Size
56
57 <IfModule mod_autoindex.c>
58 Options -Indexes
59 </ifModule>