HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2019-03-07 35727b04e330b323ace37d8a6de9d9b264dd7e96
hsarback/src/de/hsadmin/mods/pac/httpd-virtual.vm
@@ -3,9 +3,33 @@
# Do not edit manually. Changes will be overwritten.
#
#foreach( $pac in ${hive.pacs} )
#foreach( $pac in ${hive.webpacs} )
<VirtualHost ${pac.curINetAddr.inet4Addr}:80 ${pac.curINetAddr.inet6Addr}:80>
    ServerName _
    ServerAdmin webmaster@${pac.name}.hostsharing.net
# ${pac.name}
NameVirtualHost ${pac.curINetAddr.inetAddr}:80
NameVirtualHost ${pac.curINetAddr.inetAddr}:443
    <Directory />
        Redirect 404 /
        ErrorDocument 404 "No virtual host configured for this host name."
    </Directory>
</VirtualHost>
<VirtualHost ${pac.curINetAddr.inet4Addr}:443 ${pac.curINetAddr.inet6Addr}:443>
    ServerName _
    ServerAdmin webmaster@${pac.name}.hostsharing.net
    SSLEngine On
    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