diff --git a/templates/apache2-vhost.conf.j2 b/templates/apache2-vhost.conf.j2 index bdb698f..991a3f4 100644 --- a/templates/apache2-vhost.conf.j2 +++ b/templates/apache2-vhost.conf.j2 @@ -1,22 +1,21 @@ - - - ServerAdmin webmaster@localhost +{{ ansible_managed | comment }} - DocumentRoot /var/www/html + + ServerName {{postfixadmin_server_name}} - ErrorLog ${APACHE_LOG_DIR}/error.log - CustomLog ${APACHE_LOG_DIR}/access.log combined + ErrorLog ${APACHE_LOG_DIR}/error.log + CustomLog ${APACHE_LOG_DIR}/access.log combined - SSLEngine on - SSLCertificateFile "{{postfixadmin_certificate_fullchain_file}}" - SSLCertificateKeyFile "{{postfixadmin_certificate_private_key_file}}" + SSLEngine on + SSLCertificateFile "{{postfixadmin_certificate_fullchain_file}}" + SSLCertificateKeyFile "{{postfixadmin_certificate_private_key_file}}" - - SSLOptions +StdEnvVars - - - SSLOptions +StdEnvVars - + DocumentRoot /var/www/default/ + + Options -Indexes + - - + Alias /postfixadmin /usr/share/postfixadmin/public + Redirect /postfixadmin/public /postfixadmin + +