add autoconfig to vhost template
This commit is contained in:
parent
fad4022cd5
commit
b294f974d7
@ -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,13 +48,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} )
|
||||
@ -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} )
|
||||
|
Loading…
Reference in New Issue
Block a user