View | Details | Raw Unified | Return to bug 13791
Collapse All | Expand All

(-)a/debian/templates/apache-shared-intranet-plack.conf (+25 lines)
Line 0 Link Here
1
# Apache configuration settings that are shared for every Koha instance.
2
# This file contains settings for the Plack configuration of the intranet.
3
#
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.
7
8
# Plack is only available out-of-the-box for Apache 2.4.7+ setups
9
<IfVersion >= 2.4>
10
    <IfModule mod_proxy_http.c>
11
12
        ProxyPreserveHost On
13
14
       # RequestHeader set X-FORWARDED-PROTO "https"
15
16
        # Point the intranet site to Plack
17
        ProxyPass /cgi-bin/koha "unix:/var/run/koha/${instance}/plack.sock|http://localhost/intranet"
18
        ProxyPassReverse /cgi-bin/koha "unix:/var/run/koha/${instance}/plack.sock|http://localhost/intranet"
19
20
        # Point the /api endpoint to Plack
21
       # ProxyPass /api "unix:/var/run/koha/${instance}/plack.sock|http://localhost/api"
22
       # ProxyPassReverse /api "unix:/var/run/koha/${instance}/plack.sock|http://localhost/api"
23
24
    </IfModule>
25
</IfVersion>
(-)a/debian/templates/apache-shared-opac-plack.conf (+25 lines)
Line 0 Link Here
1
# Apache configuration settings that are shared for every Koha instance.
2
# This file contains settings for the Plack configuration of the OPAC.
3
#
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.
7
8
# Plack is only available out-of-the-box for Apache 2.4.7+ setups
9
<IfVersion >= 2.4>
10
    <IfModule mod_proxy_http.c>
11
12
        ProxyPreserveHost On
13
14
       # RequestHeader set X-FORWARDED-PROTO "https"
15
16
        # Point the intranet site to Plack
17
        ProxyPass /cgi-bin/koha "unix:/var/run/koha/${instance}/plack.sock|http://localhost/opac"
18
        ProxyPassReverse /cgi-bin/koha "unix:/var/run/koha/${instance}/plack.sock|http://localhost/opac"
19
20
        # Point the /api endpoint to Plack
21
       # ProxyPass /api "unix:/var/run/koha/${instance}/plack.sock|http://localhost/api"
22
       # ProxyPassReverse /api "unix:/var/run/koha/${instance}/plack.sock|http://localhost/api"
23
24
    </IfModule>
25
</IfVersion>
(-)a/debian/templates/apache-site.conf.in (-1 / +8 lines)
Lines 2-9 Link Here
2
2
3
# OPAC
3
# OPAC
4
<VirtualHost *:__OPACPORT__>
4
<VirtualHost *:__OPACPORT__>
5
  <IfVersion >= 2.4>
6
   Define instance "__KOHASITE__"
7
  </IfDefine>
5
   Include /etc/koha/apache-shared.conf
8
   Include /etc/koha/apache-shared.conf
6
#  Include /etc/koha/apache-shared-disable.conf
9
#  Include /etc/koha/apache-shared-disable.conf
10
#  Include /etc/koha/apache-shared-opac-plack.conf
7
   Include /etc/koha/apache-shared-opac.conf
11
   Include /etc/koha/apache-shared-opac.conf
8
12
9
   ServerName __OPACSERVER__
13
   ServerName __OPACSERVER__
Lines 19-26 Link Here
19
23
20
# Intranet
24
# Intranet
21
<VirtualHost *:__INTRAPORT__>
25
<VirtualHost *:__INTRAPORT__>
26
  <IfVersion >= 2.4>
27
   Define instance "__KOHASITE__"
28
  </IfDefine>
22
   Include /etc/koha/apache-shared.conf
29
   Include /etc/koha/apache-shared.conf
23
#  Include /etc/koha/apache-shared-disable.conf
30
#  Include /etc/koha/apache-shared-disable.conf
31
#  Include /etc/koha/apache-shared-intranet-plack.conf
24
   Include /etc/koha/apache-shared-intranet.conf
32
   Include /etc/koha/apache-shared-intranet.conf
25
   
33
   
26
   ServerName __INTRASERVER__
34
   ServerName __INTRASERVER__
27
- 

Return to bug 13791