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