/[webwml]/packages/etc/apache.conf
ViewVC logotype

Contents of /packages/etc/apache.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Fri Aug 12 15:29:26 2005 UTC (7 years, 9 months ago) by djpig
Branch: MAIN
CVS Tags: merge_to_experimental-20050813, merge_to_experimental-20051110, merge_to_ubuntu-20050925, HEAD
Changes since 1.10: +1 -0 lines
We use ISO-8859-1 for nl currently
1 # Need to turn on negotiation_module
2 <Directory /org/packages.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 utf-8
7 AllowOverride AuthConfig FileInfo
8
9 # Nice caching..
10 ExpiresActive On
11 ExpiresDefault "access plus 1 day"
12 ExpiresByType image/gif "access plus 1 week"
13 ExpiresByType image/jpeg "access plus 1 week"
14
15 # language stuff
16 # you need to keep this in sync with lib/Packages/I18N/Locale.pm
17 # %lang2charset
18 AddLanguage en .en
19 AddLanguage en-us .en-us
20 AddLanguage en-gb .en-gb
21 AddLanguage ar .ar
22 AddLanguage bg .bg
23 AddLanguage ca .ca
24 AddLanguage cs .cs
25 AddCharset ISO-8859-2 .cs
26 AddLanguage da .da
27 AddCharset ISO-8859-1 .da
28 AddLanguage de .de
29 AddLanguage el .el
30 AddLanguage eo .eo
31 AddLanguage es .es
32 AddCharset ISO-8859-1 .es
33 AddLanguage fi .fi
34 AddCharset ISO-8859-1 .fi
35 AddLanguage fr .fr
36 AddLanguage hr .hr
37 AddLanguage hu .hu
38 AddCharset ISO-8859-2 .hu
39 AddLanguage id .id
40 AddLanguage it .it
41 AddCharset ISO-8859-1 .it
42 AddLanguage ja .ja
43 AddCharset EUC_JP .ja
44 AddLanguage ko .ko
45 AddLanguage lt .lt
46 AddLanguage nl .nl
47 AddCharset ISO-8859-1 .nl
48 AddLanguage no .no
49 AddLanguage nb .nb
50 AddLanguage pl .pl
51 AddCharset ISO-8859-2 .pl
52 AddLanguage pt .pt
53 AddCharset ISO-8859-1 .pt
54 AddLanguage pt-pt .pt_PT
55 AddCharset ISO-8859-1 .pt_PT
56 AddLanguage pt-br .pt_BR
57 AddCharset ISO-8859-1 .pt_BR
58 AddLanguage ro .ro
59 AddLanguage ru .ru
60 AddLanguage sk .sk
61 AddCharset ISO-8859-2 .sk
62 AddLanguage sl .sl
63 AddLanguage sv .sv_SE
64 AddCharset ISO-8859-1 .sv_SE
65 AddLanguage tr .tr
66 AddLanguage uk .uk
67 AddCharset KOI8-U .uk
68 AddLanguage zh-CN .zh-cn
69 AddLanguage zh-HK .zh-hk
70 AddLanguage zh-TW .zh-tw
71 LanguagePriority en fr de it es ja pl hr da pt pt-pt pt-br fi zh-cn zh-hk zh-tw cs sv sv-se ko no nb ru tr uk eo ar nl hu ro sk el ca en-us en-gb id lt sl bg
72
73 DirectoryIndex index index.html index.shtml index.htm
74
75 # RSS stuff
76 AddType application/rss+xml .rdf .xml
77 </Directory>
78
79 <VirtualHost *>
80 ServerAdmin webmaster@debian.org
81 DocumentRoot /org/packages.debian.org/www/
82 ServerName packages.debian.org
83 ErrorLog /var/log/apache/packages.debian.org-error.log
84 CustomLog /var/log/apache/packages.debian.org-access.log combined
85
86 ScriptAlias /cgi-bin /org/packages.debian.org/cgi-bin/
87
88 RewriteEngine on
89
90 RewriteRule ^/$ http://www.debian.org/distrib/packages
91 RewriteRule ^/([^/+]*)([+])([^/]*)$ "/$1%%{%}2B$3" [N]
92 RewriteRule ^/src:([^/]+)$ http://packages.debian.org/cgi-bin/search_packages.pl?searchon=sourcenames&version=all&exact=1&keywords=$1 [R,L,NE]
93 RewriteRule ^/file:(.+)$ http://packages.debian.org/cgi-bin/search_contents.pl?word=$1&searchmode=searchfiles [R,L,NE]
94 RewriteRule ^/dirs:(.+)$ http://packages.debian.org/cgi-bin/search_contents.pl?word=$1&searchmode=searchfilesanddirs [R,L,NE]
95 RewriteRule ^/word:(.+)$ http://packages.debian.org/cgi-bin/search_contents.pl?word=$1&searchmode=searchword [R,L,NE]
96 RewriteRule ^/list:([^/]+)$ http://packages.debian.org/cgi-bin/search_contents.pl?word=$1&searchmode=filelist [R,L,NE]
97 RewriteCond %{LA-U:SCRIPT_FILENAME} "!-f"
98 RewriteCond %{LA-U:SCRIPT_FILENAME} "!-d"
99 RewriteRule ^/([^/]+)$ http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&version=all&exact=1&keywords=$1 [R,L,NE]
100
101 # In case we need to disable the site again
102 #
103 # ErrorDocument 404 /index.html
104 # RewriteCond %{SCRIPT_FILENAME} !^/(sbin|cgi-bin|Pics|test)/
105 # RewriteCond %{SCRIPT_FILENAME} !^/favicon.ico
106 # RewriteCond %{SCRIPT_FILENAME} !^/(stable|testing|unstable|experimental)/
107 # RewriteRule . /index.html
108
109 </VirtualHost>

  ViewVC Help
Powered by ViewVC 1.1.5