X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=examples%2Fapache.conf;h=0c1315d18c674ac853e25f6809fbabf6e61e68e9;hb=refs%2Fheads%2Ftravis-ci;hp=298472bc04fa2c46313c870dd9393f56af6e02a3;hpb=a2280def4dae41ee886f5923ada6d4a2cf8d9461;p=debbugs.git diff --git a/examples/apache.conf b/examples/apache.conf index 298472b..0c1315d 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.* @@ -31,11 +45,4 @@ RewriteRule .* - [L] RewriteRule ^/([0-9]+)$ /cgi-bin/bugreport.cgi?bug=$1 [L,R,NE] RewriteRule ^/([^/]+)$ /cgi-bin/pkgreport.cgi?pkg=$1 [L,R,NE] - - - SetHandler perl-script - PerlHandler Apache::Registry - Options +ExecCGI - -