/
opentree-ssl.conf
40 lines (32 loc) · 1.31 KB
/
opentree-ssl.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Adapting SSL settings (second VirtualHost) from /etc/apache2/sites-available/default-ssl
# in apache2 as installed in ubuntu 12.04.
#
# We support both HTTP and HTTPS, with two separate files in sites-available.
# This file holds only the settings unique to the HTTPS VirtualHost, with all
# shared configuration included from 'apache-confog-shared'. See
# http://serverfault.com/questions/83669/apache2-with-ssl-do-i-have-to-copy-virtualhost-blocks
#
# This file should be periodically reviewed as apache versions advance and
# 'best practice' for virtual host configurations changes.
<IfModule mod_ssl.c>
<VirtualHost *:443>
# This is edited by restart-apache.sh
ServerName SERVERNAME_REPLACEME
ErrorLog ${APACHE_LOG_DIR}/ssl_error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
SSLEngine on
SSLCertificateFile /etc/ssl/certs/opentree/STAR_opentreeoflife_org.pem
SSLCertificateKeyFile /etc/ssl/private/opentreeoflife.org.key
# SSL Engine Options:
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
# OPENTREE SHARED CONFIGURATION
Include /etc/apache2/opentree-shared.conf
</VirtualHost>
</IfModule>