Bug 18309: UNIMARC update from IFLA - authority (fr) (FA)
[koha.git] / debian / templates / apache-shared-intranet-plack.conf
blobff8cd9cf58b9f4df2b8f2eff82cec81ef5890126
1 # Apache configuration settings that are shared for every Koha instance.
2 # This file contains settings for the Plack configuration of the intranet.
4 # This file should be included from an instance's
5 # /etc/apache2/site-available file, from within the VirtualHost section
6 # for the intranet.
8 # Plack is only available out-of-the-box for Apache 2.4.8+ setups
9 <IfVersion >= 2.4.8>
10     <IfModule mod_proxy_http.c>
12         # FIXME: These scripts should be fixed so they
13         # don't break under plack/starman
14         ProxyPass "/cgi-bin/koha/offline_circ/process_koc.pl" "!"
15         ProxyPass "/cgi-bin/koha/tools/background-job-progress.pl" "!"
16         ProxyPass "/cgi-bin/koha/tools/batch_record_modification.pl" "!"
17         ProxyPass "/cgi-bin/koha/tools/batchMod.pl" "!"
18         ProxyPass "/cgi-bin/koha/tools/manage-marc-import.pl" "!"
19         ProxyPass "/cgi-bin/koha/tools/stage-marc-import.pl" "!"
20         ProxyPass "/cgi-bin/koha/tools/upload-cover-image.pl" "!"
21         ProxyPass "/cgi-bin/koha/svc/cataloguing/metasearch" "!"
23         ProxyPreserveHost On
25         RequestHeader set X-FORWARDED-PROTO "https" env=HTTPS
27         # Point the intranet site to Plack
28         ProxyPass /index.html "unix:/var/run/koha/${instance}/plack.sock|http://localhost/intranet/mainpage.pl"
29         ProxyPassReverse /index.html "unix:/var/run/koha/${instance}/plack.sock|http://localhost/intranet/mainpage.pl"
30         ProxyPass /cgi-bin/koha "unix:/var/run/koha/${instance}/plack.sock|http://localhost/intranet"
31         ProxyPassReverse /cgi-bin/koha "unix:/var/run/koha/${instance}/plack.sock|http://localhost/intranet"
33         # Point the /api endpoint to Plack
34         RewriteCond %{REQUEST_URI} !^/api/v[0-1]+/app.pl
35         RewriteRule ^/api/(v[0-9]+)/(.*)$ /api/$1/app.pl/api/$1/$2 [L,PT]
37         ProxyPass /api "unix:/var/run/koha/${instance}/plack.sock|http://localhost/api"
38         ProxyPassReverse /api "unix:/var/run/koha/${instance}/plack.sock|http://localhost/api"
40     </IfModule>
41 </IfVersion>