From b9d92acd0a481c861a8e41d9ae90e1832db02596 Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Tue, 1 Feb 2022 10:47:01 +0000 Subject: [PATCH] Bug 29992: Add CGIPassAuth directive --- debian/templates/apache-shared-intranet.conf | 2 ++ debian/templates/apache-shared-opac.conf | 2 ++ 2 files changed, 4 insertions(+) diff --git a/debian/templates/apache-shared-intranet.conf b/debian/templates/apache-shared-intranet.conf index 7e58a48158..a7c6821fa6 100644 --- a/debian/templates/apache-shared-intranet.conf +++ b/debian/templates/apache-shared-intranet.conf @@ -27,6 +27,8 @@ Alias "/api" "/usr/share/koha/api" SetEnv MOJO_MODE "production" + CGIPassAuth on + RewriteBase /api/ RewriteCond %{REQUEST_URI} !^/api/v[0-1]+/app.pl RewriteRule ^(v[0-9]+)/(.*)$ /api/$1/app.pl/api/$1/$2 [L] diff --git a/debian/templates/apache-shared-opac.conf b/debian/templates/apache-shared-opac.conf index 2568e0c966..26cb4143d2 100644 --- a/debian/templates/apache-shared-opac.conf +++ b/debian/templates/apache-shared-opac.conf @@ -31,6 +31,8 @@ Alias "/api" "/usr/share/koha/api" SetEnv MOJO_MODE "production" + CGIPassAuth on + RewriteBase /api/ RewriteCond %{REQUEST_URI} !^/api/v[0-1]+/app.pl RewriteRule ^(v[0-9]+)/(.*)$ /api/$1/app.pl/api/$1/$2 [L] -- 2.20.1