]> git.donarmstrong.com Git - debbugs.git/blob - examples/apache.conf
9800c044ef71e13432606b874fc3b9d2cb662df5
[debbugs.git] / examples / apache.conf
1 <VirtualHost *>
2     ServerName bugs.debian.org
3     ServerAdmin owner@bugs.debian.org
4     DocumentRoot /var/lib/debbugs/www/
5
6     ErrorLog /var/log/apache2/debbugs-error.log
7     CustomLog /var/log/apache2/debbugs-access.log combined
8
9     <Directory />
10         Options FollowSymLinks
11         AllowOverride None
12     </Directory>
13
14     <Directory /var/lib/debbugs/www>
15         Options -Indexes FollowSymLinks MultiViews
16         AllowOverride Options
17         Order allow,deny
18         allow from all
19     </Directory>
20
21     <Directory /var/lib/debbugs/www/txt>
22         Options +Indexes
23     </Directory>
24
25     ScriptAlias /cgi-bin/ /var/lib/debbugs/www/cgi/
26     <Directory "/var/lib/debbugs/www/cgi/">
27         AllowOverride None
28         Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
29         Order allow,deny
30         Allow from all
31     </Directory>
32
33     RewriteEngine on
34     RewriteCond %{HTTP_USER_AGENT}      .*apt-listbugs.*
35     RewriteRule .*                      /apt-listbugs.html [R,L]
36
37     #  RewriteLog /org/bugs.debian.org/apache-rewrite.log
38     #  RewriteLogLevel 0
39      
40     #RewriteRule ^/$ http://www.debian.org/Bugs/
41     RewriteRule ^/(robots\.txt|release-critical|apt-listbugs\.html)$ - [L]
42     # The following two redirect to up-to-date pages
43     RewriteRule ^/[[:space:]]*#?([[:digit:]][[:digit:]][[:digit:]]+)([;&].+)?$ /cgi-bin/bugreport.cgi?bug=$1$2 [L,R,NE]
44     RewriteRule ^/([^/+]*)([+])([^/]*)$ "/$1%%{%}2B$3" [N]
45     RewriteRule ^/[Ff][Rr][Oo][Mm]:([^/]+\@.+)$ /cgi-bin/pkgreport.cgi?submitter=$1 [L,R,NE]
46     # Commented out, 'cuz aj says it will crash master. (old master)
47     # RewriteRule ^/[Ss][Ee][Vv][Ee][Rr][Ii][Tt][Yy]:([^/]+\@.+)$ /cgi-bin/pkgreport.cgi?severity=$1 [L,R]
48     RewriteRule ^/([^/]+\@.+)$ /cgi-bin/pkgreport.cgi?maint=$1 [L,R,NE]
49     RewriteRule ^/mbox:([[:digit:]][[:digit:]][[:digit:]]+)([;&].+)?$ /cgi-bin/bugreport.cgi?mbox=yes&bug=$1$2 [L,R,NE]
50     RewriteRule ^/src:([^/]+)$ /cgi-bin/pkgreport.cgi?src=$1 [L,R,NE]
51     RewriteRule ^/severity:([^/]+)$ /cgi-bin/pkgreport.cgi?severity=$1 [L,R,NE]
52     RewriteRule ^/tag:([^/]+)$ /cgi-bin/pkgreport.cgi?tag=$1 [L,R,NE]
53     # RewriteMap fix-chars      int:noescape
54     RewriteCond %{REQUEST_URI} ^/(Access\.html|Developer\.html|Reporting\.html|server-request\.html|server-control\.html|server-refcard\.html).* [NC]
55     RewriteRule .* - [L]
56     RewriteRule ^/([0-9]+)$ /cgi-bin/bugreport.cgi?bug=$1 [L,R,NE]
57     RewriteRule ^/([^/]+)$ /cgi-bin/pkgreport.cgi?pkg=$1 [L,R,NE]
58     <IfModule mod_perl.c>
59         <Directory /org/bugs.debian.org/cgi-bin/sql>
60             SetHandler  perl-script
61             PerlHandler Apache::Registry
62             Options +ExecCGI
63         </Directory>
64     </IfModule>
65 </VirtualHost>