Koha-clms/debian/templates/apache-shared-opac-plack.conf

26 lines
997 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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>