~libravatar/libravatar/master

« back to all changes in this revision

Viewing changes to config/www.apache2.conf

  • Committer: Francois Marier
  • Date: 2011-04-10 04:11:35 UTC
  • mfrom: (392.1.7)
  • Revision ID: git-v1:15693968875bc8e66c780be13037e2474659e900
Merge account export functionality

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
            Allow from all
30
30
        </Files>
31
31
    </Directory>
 
32
    <Directory /usr/share/libravatar/libravatar/schemas>
 
33
        Allow from all
 
34
        Options +Indexes
 
35
    </Directory>
32
36
    <Directory /etc/libravatar>
33
37
        <Files django.wsgi>
34
38
            Allow from all
40
44
    <Directory /var/lib/libravatar/user>
41
45
        Allow from all
42
46
    </Directory>
 
47
    <Directory /var/lib/libravatar/export>
 
48
        Allow from all
 
49
    </Directory>
43
50
 
44
51
    Alias /favicon.ico /usr/share/libravatar/libravatar/favicon.ico
45
52
    Alias /robots.txt /usr/share/libravatar/libravatar/robots.txt
46
53
    Alias /uploaded /var/lib/libravatar/uploaded
47
54
    Alias /user /var/lib/libravatar/user
 
55
    Alias /export /var/lib/libravatar/export
 
56
    Alias /schemas /usr/share/libravatar/libravatar/schemas
48
57
 
49
58
    <Location /uploaded>
50
59
        Header set Cache-Control "public"
55
64
        ErrorDocument 404 http://__CDNSERVERNAME__/img/missing.png
56
65
    </Location>
57
66
 
 
67
    <Location /export>
 
68
        # Force browsers to download this instead of serving it
 
69
        ForceType application/octet-stream
 
70
        Header set Content-Disposition attachment
 
71
    </Location>
 
72
 
58
73
    # Clients should be using cdn.libravatar.org/avatar/
59
74
    RewriteEngine on
60
75
    RewriteRule ^/avatar/ - [last]