Line 0
Link Here
|
0 |
- |
1 |
# Koha instance __KOHASITE__ Apache config. |
|
|
2 |
|
3 |
#<VirtualHost *:80> #nohttps |
4 |
# RewriteEngine On |
5 |
# RewriteCond %{HTTPS} !=on |
6 |
# RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] |
7 |
#</VirtualHost> |
8 |
|
9 |
|
10 |
# OPAC |
11 |
<VirtualHost *:80> #https |
12 |
# SSLEngine on |
13 |
# SSLProtocol +TLSv1.2 +TLSv1.1 +TLSv1 |
14 |
# SSLCompression off |
15 |
# SSLHonorCipherOrder on |
16 |
# SSLCipherSuite "ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-SA-AES128-SHA256:ECDHE-RSA-AES256-SHA" |
17 |
# SSLCertificateKeyFile /etc/letsencrypt/live/__OPACSERVER__/privkey.pem |
18 |
# SSLCertificateFile /etc/letsencrypt/live/__OPACSERVER__/cert.pem |
19 |
# SSLCertificateChainFile /etc/letsencrypt/live/__OPACSERVER__/chain.pem |
20 |
|
21 |
<IfVersion >= 2.4> |
22 |
Define instance "__KOHASITE__" |
23 |
</IfVersion> |
24 |
Include /etc/koha/apache-shared.conf |
25 |
# Include /etc/koha/apache-shared-disable.conf |
26 |
# Include /etc/koha/apache-shared-opac-plack.conf |
27 |
Include /etc/koha/apache-shared-opac.conf |
28 |
|
29 |
ServerName __OPACSERVER__ |
30 |
SetEnv KOHA_CONF "/etc/koha/sites/__KOHASITE__/koha-conf.xml" |
31 |
SetEnv MEMCACHED_SERVERS "__MEMCACHED_SERVERS__" |
32 |
SetEnv MEMCACHED_NAMESPACE "__MEMCACHED_NAMESPACE__" |
33 |
AssignUserID __UNIXUSER__ __UNIXGROUP__ |
34 |
|
35 |
ErrorLog /var/log/koha/__KOHASITE__/opac-error.log |
36 |
# TransferLog /var/log/koha/__KOHASITE__/opac-access.log |
37 |
# RewriteLog /var/log/koha/__KOHASITE__/opac-rewrite.log |
38 |
</VirtualHost> |
39 |
|
40 |
# Intranet |
41 |
<VirtualHost *:80> #https |
42 |
# SSLEngine on |
43 |
# SSLProtocol +TLSv1.2 +TLSv1.1 +TLSv1 |
44 |
# SSLCompression off |
45 |
# SSLHonorCipherOrder on |
46 |
# SSLCipherSuite "ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA" |
47 |
# SSLCertificateKeyFile /etc/letsencrypt/live/__OPACSERVER__/privkey.pem |
48 |
# SSLCertificateFile /etc/letsencrypt/live/__OPACSERVER__/cert.pem |
49 |
# SSLCertificateChainFile /etc/letsencrypt/live/__OPACSERVER__/chain.pem |
50 |
|
51 |
<IfVersion >= 2.4> |
52 |
Define instance "__KOHASITE__" |
53 |
</IfVersion> |
54 |
Include /etc/koha/apache-shared.conf |
55 |
# Include /etc/koha/apache-shared-disable.conf |
56 |
# Include /etc/koha/apache-shared-intranet-plack.conf |
57 |
Include /etc/koha/apache-shared-intranet.conf |
58 |
|
59 |
ServerName __INTRASERVER__ |
60 |
SetEnv KOHA_CONF "/etc/koha/sites/__KOHASITE__/koha-conf.xml" |
61 |
SetEnv MEMCACHED_SERVERS "__MEMCACHED_SERVERS__" |
62 |
SetEnv MEMCACHED_NAMESPACE "__MEMCACHED_NAMESPACE__" |
63 |
AssignUserID __UNIXUSER__ __UNIXGROUP__ |
64 |
|
65 |
ErrorLog /var/log/koha/__KOHASITE__/intranet-error.log |
66 |
# TransferLog /var/log/koha/__KOHASITE__/intranet-access.log |
67 |
# RewriteLog /var/log/koha/__KOHASITE__/intranet-rewrite.log |
68 |
</VirtualHost> |