58b29655dd
The Apache 2.4 documentation says UDS support for ProxyPass has been introduced in Apache 2.4.7. That's what is shipped by Koha's supported Debian / Ubuntu versions. But it is not true, empiric tests and even the changelog for the apache project says the feature got introduced in 2.4.8. So to avoid breakages I raised the version number test on the apache files to 2.4.8. New bugs will be filled for dealing with this if we find it necessary. Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
25 lines
997 B
Text
25 lines
997 B
Text
# Apache configuration settings that are shared for every Koha instance.
|
||
# This file contains settings for the Plack configuration of the OPAC.
|
||
#
|
||
# This file should be included from an instance's
|
||
# /etc/apache2/site-available file, from within the VirtualHost section
|
||
# for the OPAC.
|
||
|
||
# Plack is only available out-of-the-box for Apache 2.4.7+ setups
|
||
<IfVersion >= 2.4.8>
|
||
<IfModule mod_proxy_http.c>
|
||
|
||
ProxyPreserveHost On
|
||
|
||
# RequestHeader set X-FORWARDED-PROTO "https"
|
||
|
||
# Point the intranet site to Plack
|
||
ProxyPass /cgi-bin/koha "unix:/var/run/koha/${instance}/plack.sock|http://localhost/opac"
|
||
ProxyPassReverse /cgi-bin/koha "unix:/var/run/koha/${instance}/plack.sock|http://localhost/opac"
|
||
|
||
# Point the /api endpoint to Plack
|
||
# ProxyPass /api "unix:/var/run/koha/${instance}/plack.sock|http://localhost/api"
|
||
# ProxyPassReverse /api "unix:/var/run/koha/${instance}/plack.sock|http://localhost/api"
|
||
|
||
</IfModule>
|
||
</IfVersion>
|