2 ServerName bugs.debian.org
3 ServerAdmin owner@bugs.debian.org
4 DocumentRoot /var/lib/debbugs/www/
6 ErrorLog /var/log/apache/debbugs-error.log
7 CustomLog /var/log/apache/debbugs-access.log combined
10 Options FollowSymLinks
14 <Directory /var/lib/debbugs/www>
15 Options -Indexes FollowSymLinks MultiViews
21 <Directory /var/lib/debbugs/www/db>
25 <Directory /var/lib/debbugs/www/txt>
29 ScriptAlias /cgi-bin/ /var/lib/debbugs/www/cgi/
30 <Directory "/var/lib/debbugs/www/cgi/">
32 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
38 RewriteCond %{HTTP_USER_AGENT} .*apt-listbugs.*
39 RewriteRule .* /apt-listbugs.html [R,L]
41 # RewriteLog /org/bugs.debian.org/apache-rewrite.log
44 #RewriteRule ^/$ http://www.debian.org/Bugs/
45 RewriteRule ^/(robots\.txt|release-critical|apt-listbugs\.html)$ - [L]
46 # The following two redirect to up-to-date pages
47 RewriteRule ^/[[:space:]]*#?([[:digit:]][[:digit:]][[:digit:]]+)([;&].+)?$ /cgi-bin/bugreport.cgi?bug=$1$2 [L,R,NE]
48 RewriteRule ^/([^/+]*)([+])([^/]*)$ "/$1%%{%}2B$3" [N]
49 RewriteRule ^/[Ff][Rr][Oo][Mm]:([^/]+\@.+)$ /cgi-bin/pkgreport.cgi?submitter=$1 [L,R,NE]
50 # Commented out, 'cuz aj says it will crash master. (old master)
51 # RewriteRule ^/[Ss][Ee][Vv][Ee][Rr][Ii][Tt][Yy]:([^/]+\@.+)$ /cgi-bin/pkgreport.cgi?severity=$1 [L,R]
52 RewriteRule ^/([^/]+\@.+)$ /cgi-bin/pkgreport.cgi?maint=$1 [L,R,NE]
53 RewriteRule ^/mbox:([[:digit:]][[:digit:]][[:digit:]]+)([;&].+)?$ /cgi-bin/bugreport.cgi?mbox=yes&bug=$1$2 [L,R,NE]
54 RewriteRule ^/src:([^/]+)$ /cgi-bin/pkgreport.cgi?src=$1 [L,R,NE]
55 RewriteRule ^/severity:([^/]+)$ /cgi-bin/pkgreport.cgi?severity=$1 [L,R,NE]
56 RewriteRule ^/tag:([^/]+)$ /cgi-bin/pkgreport.cgi?tag=$1 [L,R,NE]
57 # RewriteMap fix-chars int:noescape
58 RewriteCond %{REQUEST_URI} ^/(Access\.html|Developer\.html|Reporting\.html|server-request\.html|server-control\.html|server-refcard\.html).* [NC]
60 RewriteRule ^/([0-9]+)$ /cgi-bin/bugreport.cgi?bug=$1 [L,R,NE]
61 RewriteRule ^/([^/]+)$ /cgi-bin/pkgreport.cgi?pkg=$1 [L,R,NE]
63 <Directory /org/bugs.debian.org/cgi-bin/sql>
64 SetHandler perl-script
65 PerlHandler Apache::Registry