]> git.koha-community.org Git - koha.git/commit
Bug 21031: Apache Rewrite rules don't work for API when using anything but Debian...
authorDavid Cook <dcook@prosentient.com.au>
Tue, 3 Jul 2018 09:04:50 +0000 (19:04 +1000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 21 Sep 2018 09:57:55 +0000 (11:57 +0200)
commit0df11d446c284a26ef09b5719794bc0bbf542c16
tree77eac7e317af616ac187efc5ceadde67c5b14c6f
parentd38fbd4c87a6f9c654f4ecebaa52ae41fedb706a
Bug 21031: Apache Rewrite rules don't work for API when using anything but Debian package Plack configuration

The Rewrite rules for Apache don't work unless you're using
debian/templates/apache-shared-opac-plack.conf or
debian/templates/apache-shared-intranet-plack.conf.

This patch fixes the Rewrite rules for the non-Plack Debian
Apache configuration templates as well as the standard
Apache configuration file that comes with Koha.

__BEFORE APPLYING__
1. Visit /api/v1/app.pl/api/v1/spec on your git dev install
2. This should display a large page of JSON
3. Visit /api/v1/spec on your git dev install
4. This should generate a 404 error

__APPLY PATCH__

__AFTER APPLYING__
5. Visit /api/v1/app.pl/api/v1/spec on your git dev install
6. This should display a large page of JSON
7. Visit /api/v1/spec on your git dev install
8. This should display a large page of JSON (identical to
the one from earlier steps)

Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Passed QA with few notes posted separately to Bugzilla.
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit c6b50f0bac092779f93033c8a3f002cb8722d7d4)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 11b6ad197ab279aca89944001a9751a492bdb573)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
debian/templates/apache-shared-intranet.conf
debian/templates/apache-shared-opac.conf
etc/koha-httpd.conf