From: Didier Raboud <odyx@debian.org>
Date: Thu, 10 Aug 2017 22:27:12 +0000 (-0400)
Subject: Use PT|passthrough redirects for ^/([0-9]+)$ for bugreport.cgi & ^/([^/]+)$ for pkgre... 
X-Git-Tag: release/2.6.0~70
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f7ee8422f2cf386f3eecc26cc46d58eb220fbbbc;p=debbugs.git

Use PT|passthrough redirects for ^/([0-9]+)$ for bugreport.cgi & ^/([^/]+)$ for pkgreport.cgi

Signed-off-by: Don Armstrong <don@donarmstrong.com>
---

diff --git a/examples/apache.conf b/examples/apache.conf
index 0c1315d1..7ed13c62 100644
--- a/examples/apache.conf
+++ b/examples/apache.conf
@@ -43,6 +43,7 @@
     # RewriteMap fix-chars	int:noescape
     RewriteCond %{REQUEST_URI} ^/(Access\.html|Developer\.html|Reporting\.html|server-request\.html|server-control\.html|server-refcard\.html).* [NC]
     RewriteRule .* - [L]
-    RewriteRule ^/([0-9]+)$ /cgi-bin/bugreport.cgi?bug=$1 [L,R,NE]
-    RewriteRule ^/([^/]+)$ /cgi-bin/pkgreport.cgi?pkg=$1 [L,R,NE]
+    # 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]
 </VirtualHost>