]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/apache2/files/common/etc/apache2/sites-available/www.debian.org
www: fix ETag config across mirrors
[dsa-puppet.git] / modules / apache2 / files / common / etc / apache2 / sites-available / www.debian.org
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ##
5
6 # Need to turn on negotiation_module
7 <Directory /srv/www.debian.org/www/>
8   Options +MultiViews +FollowSymLinks +Indexes
9   AddHandler type-map var
10   # Make sure that the srm.conf directive is commented out.
11   AddDefaultCharSet Off
12   AllowOverride AuthConfig FileInfo
13
14   # Serve icons as image/x-icon
15   AddType image/x-icon .ico
16
17   # Serve RSS feeds as application/rss+xml
18   AddType application/rss+xml .rdf
19
20   # Nice caching..
21   ExpiresActive On
22   ExpiresDefault "access plus 1 day"
23   ExpiresByType image/gif "access plus 1 week"
24   ExpiresByType image/jpeg "access plus 1 week"
25   ExpiresByType image/png "access plus 1 week"
26   ExpiresByType image/x-icon "access plus 1 week"
27
28   # FileEtag needs to be the same across mirrors (used for caching, ignore inode)
29   FileEtag MTime Size
30
31   # language stuff, for web site translations
32   # for boot-floppies docs only: sk
33   AddLanguage en .en
34   AddLanguage en-us .en-us
35   AddLanguage en-gb .en-gb
36   AddLanguage ar .ar
37   AddLanguage bg .bg
38   AddLanguage ca .ca
39   AddLanguage cs .cs
40   AddLanguage da .da
41   AddLanguage de .de
42   AddLanguage el .el
43   AddLanguage eo .eo
44   AddLanguage es .es
45   AddLanguage fi .fi
46   AddLanguage fr .fr
47   AddLanguage hr .hr
48   AddLanguage hu .hu
49   AddLanguage hy .hy
50   AddLanguage id .id
51   AddLanguage it .it
52   AddLanguage ja .ja
53   AddLanguage ko .ko
54   AddLanguage lt .lt
55   AddLanguage nl .nl
56   AddLanguage no .no
57   AddLanguage nb .nb
58   AddLanguage pl .pl
59   AddLanguage pt .pt
60   AddLanguage pt-br .pt
61   AddLanguage ro .ro
62   AddLanguage ru .ru
63   AddLanguage sk .sk
64   AddLanguage sl .sl
65   AddLanguage sv .sv
66   AddLanguage tr .tr
67   AddLanguage uk .uk
68   AddLanguage vi .vi
69   AddLanguage zh-CN .zh-cn
70   AddLanguage zh-HK .zh-hk
71   AddLanguage zh-TW .zh-tw
72   LanguagePriority en fr de it es ja pl hr da pt pt-br fi zh-cn zh-hk zh-tw cs sv ko no nb ru tr eo ar nl hu ro sk el ca en-us en-gb id lt sl bg uk hy vi
73
74   DirectoryIndex maintenance.html index index.html index.shtml index.htm
75
76   <Files *.html.es>
77     ForceType text/html
78   </Files>
79
80   <Files *.pdf.es>
81     ForceType application/pdf
82   </Files>
83
84   <Files *.txt.es>
85     ForceType text/plain
86   </Files>
87 </Directory>
88
89 <VirtualHost *:80>
90    ServerName www.nl.debian.org
91    ServerAdmin webmaster@debian.org
92    ServerAlias www.debian.com www.debian.de www.*.debian.org newwww.deb.at www.debian.net debian.net debian.org www.debian.at
93    DocumentRoot /srv/www.debian.org/www/
94    ErrorLog /var/log/apache2/www-other.debian.org-error.log
95    CustomLog /var/log/apache2/www-other.debian.org-access.log combined
96    RewriteLog /var/log/apache2/www-other.debian.org-redirect.log
97    RewriteLogLevel 1
98
99    RewriteEngine on
100    RewriteRule ^/(.*)$ http://www.debian.org/$1 [R=301,L]
101 </VirtualHost>
102
103 <VirtualHost *:80>
104    ServerName www.debian.org
105    ServerAdmin webmaster@debian.org
106    ServerAlias www-*.debian.org
107    DocumentRoot /srv/www.debian.org/www/
108    ErrorLog /var/log/apache2/www.debian.org-error.log
109    CustomLog /var/log/apache2/www.debian.org-access.log combined
110
111    # CacheNegotiatedDocs: By default, Apache sends Pragma: no-cache with each
112    # document that was negotiated on the basis of content. This asks proxy
113    # servers not to cache the document. Uncommenting the following line disables
114    # this behavior, and proxies will be allowed to cache the documents.
115    CacheNegotiatedDocs On
116
117 # Custom Error
118    ErrorDocument 404 /devel/website/errors/404
119
120 # the joys of backwards compatibility
121    Redirect /cgi-bin/cvsweb http://cvs.debian.org
122    Redirect /Lists-Archives http://lists.debian.org
123    Redirect /search http://search.debian.org
124    Redirect /Packages http://packages.debian.org
125    Redirect /lintian http://lintian.debian.org
126
127    Redirect /SPI http://www.spi-inc.org
128 #   Redirect /OpenHardware http://www.openhardware.org
129    Redirect /OpenSource http://www.opensource.org
130
131    Redirect /Bugs/db/ix/pseudopackages.html http://www.debian.org/Bugs/pseudo-packages
132    RewriteEngine on
133    RewriteRule ^/Bugs/db/pa/l([^/]+).html$ http://bugs.debian.org/$1
134    RewriteRule ^/Bugs/db/[[:digit:]][[:digit:]]/([[:digit:]][[:digit:]][[:digit:]]+).html$ http://bugs.debian.org/$1
135    RewriteRule ^/Bugs/db/ma/l([^/]+).html$ http://bugs.debian.org/cgi-bin/pkgreport.cgi?maintenc=$1
136
137    Userdir http://people.debian.org/~*/   
138
139    Redirect /doc/prospective-packages http://www.debian.org/devel/wnpp/
140    Redirect /devel/maintainer_contacts http://www.debian.org/intro/organization
141    Redirect /zh/ http://www.debian.org/intl/Chinese/
142    Redirect /devel/help http://www.debian.org/devel/join/
143    Redirect /distrib/books http://www.debian.org/doc/books
144    Redirect /distrib/vendors http://www.debian.org/CD/vendors/
145    Redirect /distrib/cdinfo http://www.debian.org/CD/vendors/info
146    Redirect /related_links http://www.debian.org/misc/related_links
147    Redirect /ports/laptops http://www.debian.org/misc/laptops/
148    Redirect /misc/README.mirrors http://www.debian.org/mirror/list
149    Redirect /misc/README.non-US http://www.debian.org/mirror/list.non-US
150 </VirtualHost>