X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=examples%2Fapache.conf;h=6232e035d3bd7d627cc507000328860cf4e04c69;hb=refs%2Fheads%2Fdebian;hp=e322c0fbdca8ce8e162c62f0fbae8c345aaeaa5d;hpb=a54f07e01f95b7ab702a9f08375dc8dad3394ac9;p=debbugs.git diff --git a/examples/apache.conf b/examples/apache.conf index e322c0f..6232e03 100644 --- a/examples/apache.conf +++ b/examples/apache.conf @@ -1,10 +1,24 @@ +# -*- mode: apache; -*- ServerName bugs.debian.org ServerAdmin owner@bugs.debian.org - DocumentRoot /org/bugs.debian.org/www/ - ScriptAlias /cgi-bin /org/bugs.debian.org/cgi-bin - ErrorLog /var/log/apache/bugs.debian.org-error.log - CustomLog /var/log/apache/bugs.debian.org-access.log combined + DocumentRoot /var/lib/debbugs/www/ + + ErrorLog /var/log/apache2/debbugs-error.log + CustomLog /var/log/apache2/debbugs-access.log combined + + + Options Indexes SymLinksIfOwnerMatch MultiViews + DirectoryIndex index.en.html + Require all granted + + + ScriptAlias /cgi-bin/ /var/lib/debbugs/www/cgi/ + + AllowOverride None + Options ExecCGI SymLinksIfOwnerMatch + Require all granted + RewriteEngine on RewriteCond %{HTTP_USER_AGENT} .*apt-listbugs.* @@ -13,26 +27,23 @@ # RewriteLog /org/bugs.debian.org/apache-rewrite.log # RewriteLogLevel 0 - RewriteRule ^/$ http://www.debian.org/Bugs/ + #RewriteRule ^/$ http://www.debian.org/Bugs/ RewriteRule ^/(robots\.txt|release-critical|apt-listbugs\.html)$ - [L] # The following two redirect to up-to-date pages RewriteRule ^/[[:space:]]*#?([[:digit:]][[:digit:]][[:digit:]]+)([;&].+)?$ /cgi-bin/bugreport.cgi?bug=$1$2 [L,R,NE] RewriteRule ^/([^/+]*)([+])([^/]*)$ "/$1%%{%}2B$3" [N] - RewriteRule ^/[Ff][Rr][Oo][Mm]:([^/]+\@.+)$ /cgi-bin/pkgreport.cgi?submitter=$1 [L,R,NE] + RewriteRule ^/[Ff][Rr][Oo][Mm]:([^/]+\@.+)$ /cgi-bin/pkgreport.cgi?submitter=$1 [PT,NE] # Commented out, 'cuz aj says it will crash master. (old master) # RewriteRule ^/[Ss][Ee][Vv][Ee][Rr][Ii][Tt][Yy]:([^/]+\@.+)$ /cgi-bin/pkgreport.cgi?severity=$1 [L,R] - RewriteRule ^/([^/]+\@.+)$ /cgi-bin/pkgreport.cgi?maint=$1 [L,R,NE] - RewriteRule ^/mbox:([[:digit:]][[:digit:]][[:digit:]]+)([;&].+)?$ /cgi-bin/bugreport.cgi?mbox=yes&bug=$1$2 [L,R,NE] - RewriteRule ^/src:([^/]+)$ /cgi-bin/pkgreport.cgi?src=$1 [L,R,NE] - RewriteRule ^/severity:([^/]+)$ /cgi-bin/pkgreport.cgi?severity=$1 [L,R,NE] - RewriteRule ^/tag:([^/]+)$ /cgi-bin/pkgreport.cgi?tag=$1 [L,R,NE] + RewriteRule ^/([^/]+\@.+)$ /cgi-bin/pkgreport.cgi?maint=$1 [PT,NE] + RewriteRule ^/mbox:([[:digit:]][[:digit:]][[:digit:]]+)([;&].+)?$ /cgi-bin/bugreport.cgi?mbox=yes&bug=$1$2 [PT,NE] + RewriteRule ^/src:([^/]+)$ /cgi-bin/pkgreport.cgi?src=$1 [PT,NE] + RewriteRule ^/severity:([^/]+)$ /cgi-bin/pkgreport.cgi?severity=$1 [PT,NE] + RewriteRule ^/tag:([^/]+)$ /cgi-bin/pkgreport.cgi?tag=$1 [PT,NE] # RewriteMap fix-chars int:noescape - RewriteRule ^/([^/]+)$ /cgi-bin/pkgreport.cgi?pkg=$1 [L,R,NE] - - - SetHandler perl-script - PerlHandler Apache::Registry - Options +ExecCGI - - + RewriteCond %{REQUEST_URI} ^/(Access\.html|Developer\.html|Reporting\.html|server-request\.html|server-control\.html|server-refcard\.html).* [NC] + RewriteRule .* - [L] + # PT|passthrough to bugreport.cgi and pkgreport.cgi + RewriteRule ^/([0-9]+)$ /cgi-bin/bugreport.cgi?bug=$1 [PT,NE] + RewriteRule ^/([^/]+)$ /cgi-bin/pkgreport.cgi?pkg=$1 [PT,NE]