From fd8d89b093d31137b4a374fb34dea02fab1a492f Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 9 Mar 2016 10:12:07 -0300 Subject: [PATCH] Bug 16016: Apache file tweak This patch makes apache expose the sitemap files. This is suitable for including the sitemap in the robots.txt file as proposed in http://www.sitemaps.org/protocol.html#submit_robots Note: it depends on Apache 2.4+ so we can patch the file as needed. Older Apache users will be warned that they need to tweak the apache files on their own. Sponsored-by: Orex Digital --- debian/templates/apache-shared-opac.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian/templates/apache-shared-opac.conf b/debian/templates/apache-shared-opac.conf index 42715c8..392a013 100644 --- a/debian/templates/apache-shared-opac.conf +++ b/debian/templates/apache-shared-opac.conf @@ -17,3 +17,10 @@ RewriteRule (.+) $1?%1%2 [N,R,NE] RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/opac-detail\.pl?bib=$1 [PT] RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT] RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT] + += 2.4> + AliasMatch "^/sitemap(.*)" "/var/lib/koha/${instance}/sitemap/sitemap$1" + + Require all granted + + -- 2.7.0