HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2019-12-03 b294f974d7aa7a79726bb1903489296a9aee5574
add autoconfig to vhost template
1 files modified
22 ■■■■■ changed files
hsarback/src/de/hsadmin/mods/dom/apache-vhost.vm 22 ●●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/dom/apache-vhost.vm
@@ -6,6 +6,9 @@
<VirtualHost ${pac.curINetAddr.inet4Addr}:80 ${pac.oldINetAddr.inet4Addr}:80 [${pac.curINetAddr.inet6Addr}]:80 [${pac.oldINetAddr.inet6Addr}]:80>
    ServerName ${dom.name}
    ServerAlias ${dom.serveraliases}
#if( ${autoconfig} )
    ServerAlias autoconfig.${dom.name}
#end
    ServerAdmin webmaster@${dom.name}
    SuexecUserGroup ${dom.user.name} ${pac.name}
@@ -45,12 +48,12 @@
        Options +ExecCGI +IncludesNoExec -Indexes -MultiViews +SymLinksIfOwnerMatch
    </Location>
#if( ${phplatest} )
    FcgidInitialEnv HTTP_PHP_BIN /usr/lib/cgi-bin/php7.3
#end
    RewriteEngine On
    RewriteOptions Inherit
#if( ${autoconfig} )
    RewriteRule ^/mail/config-v1.1.xml$ ajp://config.hostsharing.net:8009/hsar/config-v1.1.xml [proxy,last]
#end
    RewriteCond %{REQUEST_URI} !^/cgi-bin/
    RewriteCond %{REQUEST_URI} !^/fastcgi-bin/
@@ -79,6 +82,9 @@
<VirtualHost ${pac.curINetAddr.inet4Addr}:443 ${pac.oldINetAddr.inet4Addr}:443 [${pac.curINetAddr.inet6Addr}]:443 [${pac.oldINetAddr.inet6Addr}]:443>
    ServerName ${dom.name}
    ServerAlias ${dom.serveraliases}
#if( ${autoconfig} )
    ServerAlias autoconfig.${dom.name}
#end
    ServerAdmin webmaster@${dom.name}
    SuexecUserGroup ${dom.user.name} ${pac.name}
@@ -124,13 +130,13 @@
        Options +ExecCGI +IncludesNoExec -Indexes -MultiViews +SymLinksIfOwnerMatch
    </Location>
#if( ${phplatest} )
    FcgidInitialEnv HTTP_PHP_BIN /usr/lib/cgi-bin/php7.3
#end
    RewriteEngine On
    RewriteOptions Inherit
#if( ${autoconfig} )
    RewriteRule ^/mail/config-v1.1.xml$ ajp://config.hostsharing.net:8009/hsar/config-v1.1.xml [proxy,last]
#end
    RewriteCond %{REQUEST_URI} !^/cgi-bin/
    RewriteCond %{REQUEST_URI} !^/fastcgi-bin/
#if( ${letsencrypt} )