4 |
- |
1 |
Alias /webapp /usr/share/zarafa-webapp
|
|
|
2 |
|
|
|
3 |
# Modules to enable for the caching instructions to work:
|
|
|
4 |
# mod_expires
|
|
|
5 |
# mod_headers
|
|
|
6 |
# mod_setenvif - for Internet Explorer quirks
|
|
|
7 |
#
|
|
|
8 |
# For compression:
|
|
|
9 |
# mod_deflate
|
|
|
10 |
<Directory /usr/share/zarafa-webapp/>
|
|
|
11 |
DirectoryIndex index.php
|
|
|
12 |
Options -Indexes +FollowSymLinks
|
|
|
13 |
|
59 |
- |
14 |
<IfVersion < 2.4>
|
|
|
15 |
AllowOverride Options Limit
|
|
|
16 |
</IfVersion>
|
|
|
17 |
|
|
|
18 |
<IfVersion >= 2.4>
|
|
|
19 |
AllowOverride Options Limit Authconfig
|
|
|
20 |
</IfVersion>
|
|
|
21 |
|
5 |
- |
22 |
<IfModule !mod_authz_core.c>
|
|
|
23 |
Order allow,deny
|
|
|
24 |
Allow from all
|
|
|
25 |
</IfModule>
|
|
|
26 |
<IfModule mod_authz_core.c>
|
|
|
27 |
Require all granted
|
|
|
28 |
</IfModule>
|
4 |
- |
29 |
|
|
|
30 |
FileETag All
|
|
|
31 |
|
|
|
32 |
# Uncomment to enhance security of WebApp by restricting cookies to only
|
|
|
33 |
# be provided over HTTPS connections
|
|
|
34 |
# php_flag session.cookie_secure on
|
|
|
35 |
# php_flag session.cookie_httponly on
|
|
|
36 |
|
|
|
37 |
# Manipulate the cache control headers if mod_expires and
|
|
|
38 |
# mod_headers are both enabled; otherwise the client will depend
|
|
|
39 |
# on the ETag header. However, you can set FileETag to "None" if
|
|
|
40 |
# you have multiple servers serving WebApp to the same user. In
|
|
|
41 |
# that case, apache will fall back to the config below so make
|
|
|
42 |
# sure these two modules are loaded!
|
|
|
43 |
<IfModule expires_module>
|
|
|
44 |
<IfModule headers_module>
|
|
|
45 |
ExpiresActive On
|
|
|
46 |
ExpiresDefault "now"
|
|
|
47 |
|
|
|
48 |
<filesMatch "\.(jpg|gif|png)$">
|
|
|
49 |
# All (static) resources set to 2 months expiration time.
|
|
|
50 |
ExpiresDefault "access plus 2 months"
|
|
|
51 |
Header append Cache-Control "public"
|
|
|
52 |
</filesMatch>
|
|
|
53 |
|
|
|
54 |
<FilesMatch "\.(js|css)$">
|
|
|
55 |
# All non-dynamic files set to 2 weeks expiration time.
|
|
|
56 |
ExpiresDefault "access plus 2 weeks"
|
|
|
57 |
# User agents are requested to revalidate for each resource
|
|
|
58 |
# so that the server can always serve a newer version if
|
|
|
59 |
# necessary.
|
|
|
60 |
Header append Cache-Control "no-cache, must-revalidate"
|
|
|
61 |
|
|
|
62 |
# Treat IE a little differently due to the remarks on no-cache
|
|
|
63 |
# on http://support.microsoft.com/kb/234067
|
|
|
64 |
<IfModule setenvif_module>
|
|
|
65 |
BrowserMatch MSIE ie_bug
|
|
|
66 |
</IfModule>
|
|
|
67 |
Header set Cache-Control "must-revalidate, private" env=ie_bug
|
|
|
68 |
</FilesMatch>
|
|
|
69 |
|
|
|
70 |
<filesMatch "\.(php)$">
|
|
|
71 |
# PHP files must always be retrieved from the server.
|
|
|
72 |
ExpiresActive Off
|
|
|
73 |
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
|
|
|
74 |
Header set Pragma "no-cache"
|
|
|
75 |
</filesMatch>
|
|
|
76 |
</IfModule>
|
|
|
77 |
</IfModule>
|
|
|
78 |
|
|
|
79 |
# Enable gzip compression if the module is available
|
|
|
80 |
<IfModule deflate_module>
|
|
|
81 |
<filesMatch "\.(js|css)$">
|
|
|
82 |
SetOutputFilter DEFLATE
|
|
|
83 |
</filesMatch>
|
|
|
84 |
</IfModule>
|
|
|
85 |
</Directory>
|