Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

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