-
Notifications
You must be signed in to change notification settings - Fork 37
/
apache2-https.conf
53 lines (42 loc) · 1.79 KB
/
apache2-https.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
41
42
43
44
45
46
47
48
49
50
51
52
53
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName {{domain}}
ServerAdmin admin@localhsot
# WSGI
WSGIDaemonProcess zmirror_{{mirror_name}} user=www-data group=www-data threads=12
WSGIScriptAlias / {{path_to_wsgi_py}}
WSGIPassAuthorization On
<Directory {{this_mirror_folder}}>
WSGIProcessGroup zmirror_{{mirror_name}}
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/{{mirror_name}}_ssl_error.log
CustomLog ${APACHE_LOG_DIR}/{{mirror_name}}_ssl_access.log combined
# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on
# A self-signed (snakeoil) certificate can be created by installing
# the ssl-cert package. See
# /usr/share/doc/apache2/README.Debian.gz for more info.
# If both key and certificate are stored in the same file, only the
# SSLCertificateFile directive is needed.
SSLCertificateFile {{cert_file}}
SSLCertificateKeyFile {{private_key_file}}
# Server Certificate Chain:
# Point SSLCertificateChainFile at a file containing the
# concatenation of PEM encoded CA certificates which form the
# certificate chain for the server certificate. Alternatively
# the referenced file can be the same as SSLCertificateFile
# when the CA certificates are directly appended to the server
# certificate for convinience.
SSLCertificateChainFile {{cert_chain_file}}
</VirtualHost>
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet