Add basic SSL functionality.
This commit is contained in:
parent
56629310ca
commit
dbb86f2bc4
@ -48,6 +48,14 @@
|
|||||||
{% if site.get('DocumentRoot') != False %}DocumentRoot {{ vals.DocumentRoot }}{% endif %}
|
{% if site.get('DocumentRoot') != False %}DocumentRoot {{ vals.DocumentRoot }}{% endif %}
|
||||||
{% if site.get('VirtualDocumentRoot') %}VirtualDocumentRoot {{ vals.VirtualDocumentRoot }}{% endif %}
|
{% if site.get('VirtualDocumentRoot') %}VirtualDocumentRoot {{ vals.VirtualDocumentRoot }}{% endif %}
|
||||||
|
|
||||||
|
{% if site.SSLCertificateFile is defined %}
|
||||||
|
SSLEngine on
|
||||||
|
SSLCertificateFile {{ site.SSLCertificateFile }}
|
||||||
|
{% if site.SSLCertificateKeyFile is defined %}
|
||||||
|
SSLCertificateKeyFile {{ site.SSLCertificateKeyFile }}
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% for path, dir in site.get('Directory', {}).items() %}
|
{% for path, dir in site.get('Directory', {}).items() %}
|
||||||
{% set dvals = {
|
{% set dvals = {
|
||||||
'Options': dir.get('Options', vals.Directory.Options),
|
'Options': dir.get('Options', vals.Directory.Options),
|
||||||
|
@ -44,6 +44,9 @@ apache:
|
|||||||
|
|
||||||
DocumentRoot: /path/to/www/dir/example.com # E.g., /var/www/example.com
|
DocumentRoot: /path/to/www/dir/example.com # E.g., /var/www/example.com
|
||||||
|
|
||||||
|
SSLCertificateFile = /etc/ssl/mycert.pem # if ssl is desired
|
||||||
|
SSLCertificateKeyFile = /etc/ssl/mycert.pem.key # if key for cert is needed or in an extra file
|
||||||
|
|
||||||
Directory:
|
Directory:
|
||||||
# "default" is a special case; Adds ``/path/to/www/dir/example.com``
|
# "default" is a special case; Adds ``/path/to/www/dir/example.com``
|
||||||
# E.g.: /var/www/example.com
|
# E.g.: /var/www/example.com
|
||||||
|
Loading…
Reference in New Issue
Block a user