]> git.donarmstrong.com Git - debbugs.git/blob - examples/apache.conf
merge changes from dla mainline
[debbugs.git] / examples / apache.conf
1 <VirtualHost *>
2     ServerName bugs.debian.org
3     ServerAdmin owner@bugs.debian.org
4     DocumentRoot /org/bugs.debian.org/www/
5     ScriptAlias /cgi-bin /org/bugs.debian.org/cgi-bin
6     ErrorLog /var/log/apache/bugs.debian.org-error.log
7     CustomLog /var/log/apache/bugs.debian.org-access.log combined
8
9     RewriteEngine on
10     RewriteCond %{HTTP_USER_AGENT}      .*apt-listbugs.*
11     RewriteRule .*                      /apt-listbugs.html [R,L]
12
13     #  RewriteLog /org/bugs.debian.org/apache-rewrite.log
14     #  RewriteLogLevel 0
15      
16     RewriteRule ^/$ http://www.debian.org/Bugs/
17     RewriteRule ^/(robots\.txt|release-critical|apt-listbugs\.html)$ - [L]
18     # The following two redirect to up-to-date pages
19     RewriteRule ^/[[:space:]]*#?([[:digit:]][[:digit:]][[:digit:]]+)([;&].+)?$ /cgi-bin/bugreport.cgi?bug=$1$2 [L,R,NE]
20     RewriteRule ^/([^/+]*)([+])([^/]*)$ "/$1%%{%}2B$3" [N]
21     RewriteRule ^/[Ff][Rr][Oo][Mm]:([^/]+\@.+)$ /cgi-bin/pkgreport.cgi?submitter=$1 [L,R,NE]
22     # Commented out, 'cuz aj says it will crash master. (old master)
23     # RewriteRule ^/[Ss][Ee][Vv][Ee][Rr][Ii][Tt][Yy]:([^/]+\@.+)$ /cgi-bin/pkgreport.cgi?severity=$1 [L,R]
24     RewriteRule ^/([^/]+\@.+)$ /cgi-bin/pkgreport.cgi?maint=$1 [L,R,NE]
25     RewriteRule ^/mbox:([[:digit:]][[:digit:]][[:digit:]]+)([;&].+)?$ /cgi-bin/bugreport.cgi?mbox=yes&bug=$1$2 [L,R,NE]
26     RewriteRule ^/src:([^/]+)$ /cgi-bin/pkgreport.cgi?src=$1 [L,R,NE]
27     RewriteRule ^/severity:([^/]+)$ /cgi-bin/pkgreport.cgi?severity=$1 [L,R,NE]
28     RewriteRule ^/tag:([^/]+)$ /cgi-bin/pkgreport.cgi?tag=$1 [L,R,NE]
29     # RewriteMap fix-chars      int:noescape
30     RewriteRule ^/([^/]+)$ /cgi-bin/pkgreport.cgi?pkg=$1 [L,R,NE]
31     <IfModule mod_perl.c>
32         <Directory /org/bugs.debian.org/cgi-bin/sql>
33             SetHandler  perl-script
34             PerlHandler Apache::Registry
35             Options +ExecCGI
36         </Directory>
37     </IfModule>
38 </VirtualHost>