devops-demo/Section_07/000-default-ssl.conf

28 lines
832 B
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<VirtualHost *:80>
ServerName demo-devops.konnect.dev
ServerAdmin webmaster@localhost
Redirect permanent / https://demo-devops.konnect.dev
</VirtualHost>
<VirtualHost *:443>
ServerName demo-devops.konnect.dev
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine On
SSLProxyEngine On
SSLProxyCheckPeerName Off
SSLProxyCheckPeerCN Off
SSLProxyVerify none
SSLCertificateFile /etc/letsencrypt/live/demo-devops.konnect.dev/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/demo-devops.konnect.dev/privkey.pem
RequestHeader set X-Forwarded-Proto https
RequestHeader set X-Forwarded-Port 443
</VirtualHost>