Merge branch 'master' of ssh://puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet
[mirror/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
26   # language stuff, for web site translations
27   # for boot-floppies docs only: sk
28   AddLanguage en .en
29   AddLanguage en-us .en-us
30   AddLanguage en-gb .en-gb
31   AddLanguage ar .ar
32   AddLanguage bg .bg
33   AddLanguage ca .ca
34   AddLanguage cs .cs
35   AddLanguage da .da
36   AddLanguage de .de
37   AddLanguage el .el
38   AddLanguage eo .eo
39   AddLanguage es .es
40   AddLanguage fi .fi
41   AddLanguage fr .fr
42   AddLanguage hr .hr
43   AddLanguage hu .hu
44   AddLanguage hy .hy
45   AddLanguage id .id
46   AddLanguage it .it
47   AddLanguage ja .ja
48   AddLanguage ko .ko
49   AddLanguage lt .lt
50   AddLanguage nl .nl
51   AddLanguage no .no
52   AddLanguage nb .nb
53   AddLanguage pl .pl
54   AddLanguage pt .pt
55   AddLanguage pt-br .pt
56   AddLanguage ro .ro
57   AddLanguage ru .ru
58   AddLanguage sk .sk
59   AddLanguage sl .sl
60   AddLanguage sv .sv
61   AddLanguage tr .tr
62   AddLanguage uk .uk
63   AddLanguage vi .vi
64   AddLanguage zh-CN .zh-cn
65   AddLanguage zh-HK .zh-hk
66   AddLanguage zh-TW .zh-tw
67   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
68
69   DirectoryIndex index index.html index.shtml index.htm
70
71   <Files *.html.es>
72     ForceType text/html
73   </Files>
74
75   <Files *.pdf.es>
76     ForceType application/pdf
77   </Files>
78
79   <Files *.txt.es>
80     ForceType text/plain
81   </Files>
82 </Directory>
83
84 <VirtualHost *:80>
85    ServerName www.nl.debian.org
86    ServerAdmin webmaster@debian.org
87    ServerAlias www.debian.com www.debian.de www.*.debian.org newwww.deb.at www.debian.net debian.net
88    DocumentRoot /srv/www.debian.org/www/
89    ErrorLog /var/log/apache2/www-other.debian.org-error.log
90    CustomLog /var/log/apache2/www-other.debian.org-access.log combined
91    RewriteLog /var/log/apache2/www-other.debian.org-recirect.log
92    RewriteLogLevel 1
93
94    RewriteEngine on
95    RewriteRule ^/(.*)$ http://www.debian.org/$1 [R=301,L]
96 </VirtualHost>
97
98 <VirtualHost *:80>
99    ServerName www.debian.org
100    ServerAdmin webmaster@debian.org
101    ServerAlias debian.org www-staging.debian.org
102    DocumentRoot /srv/www.debian.org/www/
103    ErrorLog /var/log/apache2/www.debian.org-error.log
104    CustomLog /var/log/apache2/www.debian.org-access.log combined
105
106    # CacheNegotiatedDocs: By default, Apache sends Pragma: no-cache with each
107    # document that was negotiated on the basis of content. This asks proxy
108    # servers not to cache the document. Uncommenting the following line disables
109    # this behavior, and proxies will be allowed to cache the documents.
110    CacheNegotiatedDocs On
111
112 # the joys of backwards compatibility
113    Redirect /cgi-bin/cvsweb http://cvs.debian.org
114    Redirect /Lists-Archives http://lists.debian.org
115    Redirect /search http://search.debian.org
116    Redirect /Packages http://packages.debian.org
117    Redirect /lintian http://lintian.debian.org
118
119    Redirect /SPI http://www.spi-inc.org
120 #   Redirect /OpenHardware http://www.openhardware.org
121    Redirect /OpenSource http://www.opensource.org
122
123    Redirect /Bugs/db/ix/pseudopackages.html http://www.debian.org/Bugs/pseudo-packages
124    RewriteEngine on
125    RewriteRule ^/Bugs/db/pa/l([^/]+).html$ http://bugs.debian.org/$1
126    RewriteRule ^/Bugs/db/[[:digit:]][[:digit:]]/([[:digit:]][[:digit:]][[:digit:]]+).html$ http://bugs.debian.org/$1
127    RewriteRule ^/Bugs/db/ma/l([^/]+).html$ http://bugs.debian.org/cgi-bin/pkgreport.cgi?maintenc=$1
128
129    Userdir http://people.debian.org/~*/   
130
131    Redirect /doc/prospective-packages http://www.debian.org/devel/wnpp/
132    Redirect /devel/maintainer_contacts http://www.debian.org/intro/organization
133    Redirect /zh/ http://www.debian.org/intl/Chinese/
134    Redirect /devel/help http://www.debian.org/devel/join/
135    Redirect /distrib/books http://www.debian.org/doc/books
136    Redirect /distrib/vendors http://www.debian.org/CD/vendors/
137    Redirect /distrib/cdinfo http://www.debian.org/CD/vendors/info
138    Redirect /related_links http://www.debian.org/misc/related_links
139    Redirect /ports/laptops http://www.debian.org/misc/laptops/
140    Redirect /misc/README.mirrors http://www.debian.org/mirror/list
141    Redirect /misc/README.non-US http://www.debian.org/mirror/list.non-US
142 </VirtualHost>