]> git.donarmstrong.com Git - debbugs.git/commitdiff
Use PT|passthrough redirects for ^/([0-9]+)$ for bugreport.cgi & ^/([^/]+)$ for pkgre...
authorDidier Raboud <odyx@debian.org>
Thu, 10 Aug 2017 22:27:12 +0000 (18:27 -0400)
committerDon Armstrong <don@donarmstrong.com>
Fri, 11 Aug 2017 18:42:32 +0000 (11:42 -0700)
Signed-off-by: Don Armstrong <don@donarmstrong.com>
examples/apache.conf

index 0c1315d18c674ac853e25f6809fbabf6e61e68e9..7ed13c626f621425e947d8d9ea41404cd29db678 100644 (file)
@@ -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>