diff --git a/hsarback/src/de/hsadmin/mods/dom/apache-vhost.vm b/hsarback/src/de/hsadmin/mods/dom/apache-vhost.vm index 15f42f5..f3a6242 100644 --- a/hsarback/src/de/hsadmin/mods/dom/apache-vhost.vm +++ b/hsarback/src/de/hsadmin/mods/dom/apache-vhost.vm @@ -6,6 +6,9 @@ ServerName ${dom.name} ServerAlias ${dom.serveraliases} +#if( ${autoconfig} ) + ServerAlias autoconfig.${dom.name} +#end ServerAdmin webmaster@${dom.name} SuexecUserGroup ${dom.user.name} ${pac.name} @@ -45,13 +48,13 @@ Options +ExecCGI +IncludesNoExec -Indexes -MultiViews +SymLinksIfOwnerMatch -#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} ) @@ -79,6 +82,9 @@ 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 -#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} )