annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
38
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
1 # AddDefaultCharset UTF-8
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
2 AddType text/x-component .htc
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
3
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
4 <IfModule mod_php7.c>
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
5 php_flag display_errors Off
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
6 php_flag log_errors On
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
7 # php_value error_log logs/errors
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
8
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
9 php_value upload_max_filesize 5M
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
10 php_value post_max_size 6M
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
11 php_value memory_limit 64M
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
12
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
13 php_flag register_globals Off
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
14 php_flag zlib.output_compression Off
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
15 php_flag magic_quotes_gpc Off
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
16 php_flag magic_quotes_runtime Off
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
17 php_flag suhosin.session.encrypt Off
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
18
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
19 #php_value session.cookie_path /
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
20 php_flag session.auto_start Off
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
21 php_value session.gc_maxlifetime 21600
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
22 php_value session.gc_divisor 500
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
23 php_value session.gc_probability 1
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
24 </IfModule>
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
25
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
26 <IfModule mod_rewrite.c>
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
27 Options +FollowSymLinks
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
28 RewriteEngine On
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
29 RewriteRule ^favicon\.ico$ skins/larry/images/favicon.ico
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
30
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
31 # security rules:
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
32 # - deny access to files not containing a dot or starting with a dot
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
33 # in all locations except installer directory
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
34 RewriteRule ^(?!installer|\.well-known\/|[a-f0-9]{16})(\.?[^\.]+)$ - [F]
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
35 # - deny access to some locations
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
36 RewriteRule ^/?(\.git|\.tx|SQL|bin|config|logs|temp|tests|program\/(include|lib|localization|steps)) - [F]
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
37 # - deny access to some documentation files
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
38 RewriteRule /?(README\.md|composer\.json-dist|composer\.json|package\.xml|Dockerfile)$ - [F]
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
39 </IfModule>
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
40
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
41 <IfModule mod_deflate.c>
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
42 SetOutputFilter DEFLATE
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
43 </IfModule>
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
44
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
45 <IfModule mod_headers.c>
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
46 # replace 'append' with 'merge' for Apache version 2.2.9 and later
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
47 #Header append Cache-Control public env=!NO_CACHE
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
48 </IfModule>
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
49
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
50 <IfModule mod_expires.c>
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
51 ExpiresActive On
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
52 ExpiresDefault "access plus 1 month"
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
53 </IfModule>
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
54
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
55 FileETag MTime Size
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
56
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
57 <IfModule mod_autoindex.c>
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
58 Options -Indexes
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
59 </ifModule>