Commit 559cd427 authored by Jonathan Blum's avatar Jonathan Blum

add SSL to vhost

parent 39845609
<VirtualHost *:80>
<VirtualHost *:{% if privatebin_ssl_cert is defined %}443{% else %}80{% endif %}>
ServerName {{ privatebin_url }}
DocumentRoot {{ privatebin_install_path }}
ErrorLog ${APACHE_LOG_DIR}/privatebin-error.log
CustomLog ${APACHE_LOG_DIR}/privatebin-access.log combined
{% if privatebin_ssl_cert is defined %}
SSLEngine on
SSLCertificateFile {{ privatebin_ssl_cert }}
{% if privatebin_ssl_chain is defined %}SSLCertificateChainFile {{ privatebin_ssl_chain }}{% endif %}
SSLCertificateKeyFile {{ privatebin_ssl_key }}
{% endif %}
<Directory {{ privatebin_install_path }}>
AllowOverride All
</Directory>
</VirtualHost>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment