Bug 21637: Fixed upercase letter in EasyAnalyticalRecords syspref
[koha.git] / debian / templates / apache-shared-opac-plack.conf
blobbee75e95f102abc2dfa6f9340a44128e3bc39087
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" env=HTTPS
16         # Point the OPAC site to Plack
17         ProxyPass /index.html "unix:/var/run/koha/${instance}/plack.sock|http://localhost/opac/opac-main.pl"
18         ProxyPassReverse /index.html "unix:/var/run/koha/${instance}/plack.sock|http://localhost/opac/opac-main.pl"
19         ProxyPass /cgi-bin/koha "unix:/var/run/koha/${instance}/plack.sock|http://localhost/opac"
20         ProxyPassReverse /cgi-bin/koha "unix:/var/run/koha/${instance}/plack.sock|http://localhost/opac"
22         # Point the /api endpoint to Plack
23         RewriteCond %{REQUEST_URI} !^/api/v[0-1]+/app.pl
24         RewriteRule ^/api/(v[0-9]+)/(.*)$ /api/$1/app.pl/api/$1/$2 [L,PT]
26         ProxyPass /api "unix:/var/run/koha/${instance}/plack.sock|http://localhost/api"
27         ProxyPassReverse /api "unix:/var/run/koha/${instance}/plack.sock|http://localhost/api"
29     </IfModule>
30 </IfVersion>