ServerName {{ inventory_hostname }} ServerAdmin webmaster@{{ inventory_hostname }} DocumentRoot /var/www/html ErrorLog ${APACHE_LOG_DIR}/{{ inventory_hostname }}.error.log CustomLog ${APACHE_LOG_DIR}/{{ inventory_hostname }}.access.log combined SSLEngine on SSLCertificateFile /etc/ssl/certs/{{ inventory_hostname }}.pem SSLCertificateKeyFile /etc/ssl/private/{{ inventory_hostname }}.key SSLOptions +StdEnvVars SSLOptions +StdEnvVars ProxyPreserveHost On SSLProxyEngine On SSLProxyCheckPeerCN on SSLProxyCheckPeerExpire on RequestHeader set X-Forwarded-Proto "https" RequestHeader set X-Forwarded-Port "443" ProxyPass / http://127.0.0.1:8080/ ProxyPassReverse / http://127.0.0.1:8080/