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,30 @@
# Apache configuration settings that are shared for every Koha instance.
# This file contains settings for the Plack configuration of the OPAC.
#
# This file should be included from an instance's
# /etc/apache2/site-available file, from within the VirtualHost section
# for the OPAC.
# Plack is only available out-of-the-box for Apache 2.4.7+ setups
<IfVersion >= 2.4.8>
<IfModule mod_proxy_http.c>
ProxyPreserveHost On
# RequestHeader set X-FORWARDED-PROTO "https"
# Point the OPAC site to Plack
ProxyPass /index.html "unix:{{ koha_install_dir }}/var/run/plack.sock|http://localhost/opac/opac-main.pl"
ProxyPassReverse /index.html "unix:{{ koha_install_dir }}/var/run/plack.sock|http://localhost/opac/opac-main.pl"
ProxyPass /cgi-bin/koha "unix:{{ koha_install_dir }}/var/run/plack.sock|http://localhost/opac"
ProxyPassReverse /cgi-bin/koha "unix:{{ koha_install_dir }}/var/run/plack.sock|http://localhost/opac"
# 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>