Bug#686943: Rewrite rule that does no packagename rewriting if any of the help pages is requested
Mike Gabriel <[email protected]>
| Newsgroups | gmane.linux.debian.devel.debbugs |
|---|---|
| Message-ID | <20120907135519.192864svcwlpbfl3__28184.1521770277$1347019043$gmane$org@mail.das-netzwerkteam.de> |
Package: debbugs Version: 2.4.2~exp1 Severity: minor Tags: patch Hi, Attached is a patch that adds a RewriteCond and a RewriteRule to the apache.conf example that allows visitors of the debbugs site to view the help pages (Access.html, Reporting.html, etc.) Thanks, Mike -- DAS-NETZWERKTEAM mike gabriel, rothenstein 5, 24214 neudorf-bornstein fon: +49 (1520) 1976 148 GnuPG Key ID 0x25771B31 mail: [email protected], http://das-netzwerkteam.de freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
debbugs-apacheconf.patch
(text/x-patch, 520 B)
--- a/examples/apache.conf
+++ b/examples/apache.conf
@@ -13,6 +13,8 @@
# RewriteLog /org/bugs.debian.org/apache-rewrite.log
# RewriteLogLevel 0
+ RewriteCond %{REQUEST_URI} ^/(Access\.html|Developer\.html|Reporting\.html|server-request\.html|server-control\.html|server-refcard\.html).* [NC]
+ RewriteRule .* - [L]
RewriteRule ^/$ http://www.debian.org/Bugs/
RewriteRule ^/(robots\.txt|release-critical|apt-listbugs\.html)$ - [L]
# The following two redirect to up-to-date pages
signature.asc
(application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAABAgAGBQJQSeCnAAoJEJr0azAldxsxukAP/2bLv9+rYJza2r2+Jm9TonUC zFyF9wIUvGdUoEKHnzCJLB/E1IKvQthyuc6Tr3qC0lXU0kImRBO+0JtHq3GsaI3c NYvXh0q6b55pry+8owiBPe46NYwtjnb/ZTa4IJUM89zB78+4kdyoE8As5oDsl0KM P758zXzSGNOuz3i2S0yeeRzMWsIaw8+8a0krGsBMisiuoxc1uSDvlopkyjudJyVQ pG7JheFxr6zf5kW/yZ7rK3dKxMVkSvWa86HAoR1+vDZ2MGL0MEMI33Cb+D4KBW5I pByVpYI+wADd0AWjUHBbiUJXrOhcTRHiaFfjXgq0DcIhdFICJhSJ8+4C3iGea898 5pCb9Ai3OxfiOxlWtl0t61xpoZHH042X6YRgfuDo7f+0Tb10nfmT0xtg4J/1Y7O5 l+vtzdNGoWrUKxFu6adz0QthFU3muoKPJVY4Qh3wCgETanqT6PS2X38Yxe04xN2Q Nh2ttS1OAfqou3oLEEwqCtO4rbyMgzzbb8U7bFAXYLm/QUVl3tSWvDSTB909jtMn rR6bTKfV9ZE8DgQcdr5x6tPlxdhc2Ilac7Ktuf03dPmQgsmoVVDxrprnLMGb4Mw2 99It08MiFGwBT3wff2/tPogqy/B4ZE8wLOdT+BYRTUDTtzmgW01f2ZZjE1oa7cWl c/dzMjZjBqMi8gVcnorm =pY2H -----END PGP SIGNATURE-----