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