HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2019-03-13 83effccb77bdab13c825f9bd6d02ac6981f9a3c8
hsarback/src/de/hsadmin/mods/pac/httpd-virtual.vm
@@ -3,31 +3,33 @@
# Do not edit manually. Changes will be overwritten.
#
#foreach( $pac in ${hive.pacs} )
<VirtualHost ${pac.curINetAddr.inetAddr}:80>
#foreach( $pac in ${hive.webpacs} )
<VirtualHost ${pac.curINetAddr.inet4Addr}:80 ${pac.curINetAddr.inet6Addr}:80>
    ServerName _
    ServerAdmin webmaster@${pac.getName}
    ServerAdmin webmaster@${pac.name}.hostsharing.net
    <Directory />
        Redirect 404 /
        ErrorDocument 404 "No virtual host configured for this host name."
    </Directory>
</VirtualHost>
<VirtualHost ${pac.curINetAddr.inetAddr}:443>
<VirtualHost ${pac.curINetAddr.inet4Addr}:443 ${pac.curINetAddr.inet6Addr}:443>
    ServerName _
    ServerAdmin webmaster@${pac.getName}
    ServerAdmin webmaster@${pac.name}.hostsharing.net
    SSLEngine On
    SSLCertificateFile /etc/apache2/pems-enabled/${pac.getName}.crt
    SSLCertificateKeyFile /etc/apache2/pems-enabled/${pac.getName}.key
    SSLCertificateChainFile /etc/apache2/pems-enabled/${pac.getName}.chain
    SSLCertificateFile /etc/apache2/pems-enabled/${pac.name}.hostsharing.net.crt
    SSLCertificateKeyFile /etc/apache2/pems-enabled/${pac.name}.hostsharing.net.key
    SSLCertificateChainFile /etc/apache2/pems-enabled/${pac.name}.hostsharing.net.chain
    <Directory />
        SSLRequireSSL On
        Redirect 404 /
        ErrorDocument 404 "No virtual host configured for this host name."
    </Directory>
</VirtualHost>
#end
#end