Bugzilla – Attachment 48860 Details for
Bug 16016
Integrate sitemap.pl into the packages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16016: Apache file tweak
Bug-16016-Apache-file-tweak.patch (text/plain), 1.31 KB, created by
Tomás Cohen Arazi (tcohen)
on 2016-03-09 13:35:19 UTC
(
hide
)
Description:
Bug 16016: Apache file tweak
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2016-03-09 13:35:19 UTC
Size:
1.31 KB
patch
obsolete
>From fd8d89b093d31137b4a374fb34dea02fab1a492f Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >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] >+ >+<IfVersion >= 2.4> >+ AliasMatch "^/sitemap(.*)" "/var/lib/koha/${instance}/sitemap/sitemap$1" >+ <Directory "/var/lib/koha/${instance}/sitemap"> >+ Require all granted >+ </Directory> >+</IfVersion> >-- >2.7.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 16016
:
48859
|
48860
|
49194
|
50498
|
50831