]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/apache2/files/common/etc/apache2/sites-available/www.debian.org
More Redirect previously handled by symlinks
[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 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    RewriteCond %{DOCUMENT_ROOT}/devel/website/errors/404.$2.html -f
120    RewriteRule ^/(?!devel/website/errors/)(.*/)?404\.(.+)\.html$ /devel/website/errors/404.$2.html [L]
121
122 # the joys of backwards compatibility
123    RedirectPermanent /cgi-bin/cvsweb http://cvs.debian.org
124    RedirectPermanent /Lists-Archives http://lists.debian.org
125    RedirectPermanent /search http://search.debian.org
126    RedirectPermanent /Packages http://packages.debian.org
127    RedirectPermanent /lintian http://lintian.debian.org
128
129    RedirectPermanent /SPI http://www.spi-inc.org
130 #   RedirectPermanent /OpenHardware http://www.openhardware.org
131    RedirectPermanent /OpenSource http://www.opensource.org
132
133    RedirectPermanent /Bugs/db/ix/pseudopackages.html /Bugs/pseudo-packages
134    RewriteEngine on
135    RewriteRule ^/Bugs/db/pa/l([^/]+).html$ http://bugs.debian.org/$1
136    RewriteRule ^/Bugs/db/[[:digit:]][[:digit:]]/([[:digit:]][[:digit:]][[:digit:]]+).html$ http://bugs.debian.org/$1
137    RewriteRule ^/Bugs/db/ma/l([^/]+).html$ http://bugs.debian.org/cgi-bin/pkgreport.cgi?maintenc=$1
138
139    Userdir http://people.debian.org/~*/   
140
141    RedirectPermanent /doc/prospective-packages /devel/wnpp/
142    RedirectPermanent /devel/maintainer_contacts /intro/organization
143    RedirectPermanent /zh/ /international/Chinese/
144    RedirectPermanent /chinese/ /international/Chinese/
145    RedirectPermanent /devel/help /devel/join/
146    RedirectPermanent /distrib/books /doc/books
147    RedirectPermanent /distrib/vendors /CD/vendors/
148    RedirectPermanent /distrib/cdinfo /CD/vendors/info
149    RedirectPermanent /related_links /misc/related_links
150    RedirectPermanent /ports/laptops /misc/laptops/
151    RedirectPermanent /misc/README.mirrors /mirror/list
152    RedirectPermanent /misc/README.non-US /mirror/list.non-US
153    RedirectPermanent /intl /international
154    RedirectPermanent /ports/armel  /ports/arm
155    RedirectPermanent /ports/mipsel /ports/mips
156    RedirectPermanent /ports/kfreebsd-amd64 /ports/kfreebsd-gnu
157    RedirectPermanent /ports/kfreebsd-i386  /ports/kfreebsd-gnu
158    RedirectPermanent /mirror/mirrors_full.html /mirror/list-full.html
159    RedirectPermanent /mirrors /mirror
160    RedirectPermanent /News/project /News/weekly
161    RedirectPermanent /releases/2.0 /releases/hamm
162    RedirectPermanent /releases/2.1 /releases/slink
163    RedirectPermanent /releases/2.2 /releases/potato
164    RedirectPermanent /releases/3.0 /releases/woody
165    RedirectPermanent /releases/3.1 /releases/sarge
166    RedirectPermanent /releases/4.0 /releases/etch
167    RedirectPermanent /releases/5.0 /releases/lenny
168    RedirectPermanent /releases/6.0 /releases/squeeze
169    RedirectPermanent /releases/unstable /releases/sid
170 </VirtualHost>