mise au point config apache, y compris certificats

This commit is contained in:
2021-12-06 16:00:34 +01:00
parent 85722d6239
commit 44cbe32f72
13 changed files with 258 additions and 71 deletions

View File

@@ -0,0 +1,62 @@
# 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>
# remove loginpage
ProxyPass "/cgi-bin/koha/mainpage.pl" "!"
# remove preference thomas@opendoor.fr 2018-12-12
ProxyPass "/cgi-bin/koha/admin/preferences.pl" "!"
# 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/batch_record_modification.pl" "!"
ProxyPass "/cgi-bin/koha/tools/batchMod.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/tools/upload-file.pl" "!"
ProxyPass "/cgi-bin/koha/svc/cataloguing/metasearch" "!"
#  Ajout des scripts soliicités par le module des acquisitions
# Pierre CHALON - 17/05/2018
#ProxyPass "/cgi-bin/koha/acqui/basket.pl" "!"
#ProxyPass "/cgi-bin/koha/acqui/booksellers.pl" "!"
ProxyPass "/cgi-bin/koha/acqui/parcel.pl" "!"
ProxyPass "/cgi-bin/koha/acqui/parcels.pl" "!"
ProxyPass "/cgi-bin/koha/acqui/orderreceive.pl" "!"
ProxyPass "/cgi-bin/koha/acqui/finishreceive.pl" "!"
#  Ajout des scripts soliicités par le module des acquisitions
# Pierre CHALON - 10/09/2018
ProxyPass "/cgi-bin/koha/acqui/neworderempty.pl" "!"
ProxyPass "/cgi-bin/koha/acqui/addorder.pl" "!"
#  Ajout des scripts soliicités par le module catalogage
# Pierre CHALON - 10/09/2018
ProxyPass "/cgi-bin/koha/cataloguing/addbiblio.pl" "!"
ProxyPass "/cgi-bin/koha/cataloguing/additem.pl" "!"
ProxyPreserveHost On
# RequestHeader set X-FORWARDED-PROTO "https"
# Point the intranet site to Plack
ProxyPass /index.html "unix:{{ koha_install_dir }}/var/run/plack.sock|http://localhost/intranet/mainpage.pl"
ProxyPassReverse /index.html "unix:{{ koha_install_dir }}/var/run/plack.sock|http://localhost/intranet/mainpage.pl"
ProxyPass /cgi-bin/koha "unix:{{ koha_install_dir }}/var/run/plack.sock|http://localhost/intranet"
ProxyPassReverse /cgi-bin/koha "unix:{{ koha_install_dir }}/var/run/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:{{ koha_install_dir }}/var/run/plack.sock|http://localhost/api"
ProxyPassReverse /api "unix:{{ koha_install_dir }}/var/run/plack.sock|http://localhost/api"
</IfModule>
</IfVersion>