Bug 14575: Fix typo OPACurlOpenInNewWindow vs OPACURLOpenInNewWindow
[koha.git] / debian / templates / apache-shared-opac-plack.conf
blob95787d81b7df61ffac4ce4557e4d9c18ab651547
1 # Apache configuration settings that are shared for every Koha instance.
2 # This file contains settings for the Plack configuration of the OPAC.
4 # This file should be included from an instance's
5 # /etc/apache2/site-available file, from within the VirtualHost section
6 # for the OPAC.
8 # Plack is only available out-of-the-box for Apache 2.4.7+ setups
9 <IfVersion >= 2.4.8>
10     <IfModule mod_proxy_http.c>
12         ProxyPreserveHost On
14        # RequestHeader set X-FORWARDED-PROTO "https"
16         # Point the intranet site to Plack
17         ProxyPass /cgi-bin/koha "unix:/var/run/koha/${instance}/plack.sock|http://localhost/opac"
18         ProxyPassReverse /cgi-bin/koha "unix:/var/run/koha/${instance}/plack.sock|http://localhost/opac"
20         # Point the /api endpoint to Plack
21        # ProxyPass /api "unix:/var/run/koha/${instance}/plack.sock|http://localhost/api"
22        # ProxyPassReverse /api "unix:/var/run/koha/${instance}/plack.sock|http://localhost/api"
24     </IfModule>
25 </IfVersion>