Nick Clemens
564ade93cc
When attempting to download large files from Koha plack can timeout Excluding the script from plack is a simple fix until we have a more permanent fix for this issue. To test: 1 - Try to export your entire DB from Tools->Export 2 - If big enough, it fails 3 - Apply patch, copy changes to /etc/koha/apache-shared-intranet-plack.conf 4 - Restart all the things 5 - Repeat export, it succeeds Signed-off-by: David Cook <dcook@prosentient.com.au> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
41 lines
1.9 KiB
Text
41 lines
1.9 KiB
Text
# Apache configuration settings that are shared for every Koha instance.
|
||
# This file contains settings for the Plack configuration of the intranet.
|
||
#
|
||
# This file should be included from an instance's
|
||
# /etc/apache2/site-available file, from within the VirtualHost section
|
||
# for the intranet.
|
||
|
||
# Plack is only available out-of-the-box for Apache 2.4.8+ setups
|
||
<IfVersion >= 2.4.8>
|
||
<IfModule mod_proxy_http.c>
|
||
|
||
# FIXME: These scripts should be fixed so they
|
||
# don't break under plack/starman
|
||
ProxyPass "/cgi-bin/koha/offline_circ/process_koc.pl" "!"
|
||
ProxyPass "/cgi-bin/koha/tools/background-job-progress.pl" "!"
|
||
ProxyPass "/cgi-bin/koha/tools/batchMod.pl" "!"
|
||
ProxyPass "/cgi-bin/koha/tools/export.pl" "!"
|
||
ProxyPass "/cgi-bin/koha/tools/manage-marc-import.pl" "!"
|
||
ProxyPass "/cgi-bin/koha/tools/stage-marc-import.pl" "!"
|
||
ProxyPass "/cgi-bin/koha/tools/upload-cover-image.pl" "!"
|
||
ProxyPass "/cgi-bin/koha/svc/cataloguing/metasearch" "!"
|
||
|
||
ProxyPreserveHost On
|
||
|
||
RequestHeader set X-FORWARDED-PROTO "https" env=HTTPS
|
||
|
||
# Point the intranet site to Plack
|
||
ProxyPass /index.html "unix:/var/run/koha/${instance}/plack.sock|http://localhost/intranet/mainpage.pl"
|
||
ProxyPassReverse /index.html "unix:/var/run/koha/${instance}/plack.sock|http://localhost/intranet/mainpage.pl"
|
||
ProxyPass /cgi-bin/koha "unix:/var/run/koha/${instance}/plack.sock|http://localhost/intranet"
|
||
ProxyPassReverse /cgi-bin/koha "unix:/var/run/koha/${instance}/plack.sock|http://localhost/intranet"
|
||
|
||
# Point the /api endpoint to Plack
|
||
RewriteCond %{REQUEST_URI} !^/api/v[0-1]+/app.pl
|
||
RewriteRule ^/api/(v[0-9]+)/(.*)$ /api/$1/app.pl/api/$1/$2 [L,PT]
|
||
|
||
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>
|