adjust autoconfig vhost template

This commit is contained in:
Peter Hormanns 2020-02-19 09:59:41 +01:00
parent 656b5dba43
commit 28ca6a8008

View File

@ -48,13 +48,21 @@
Options +ExecCGI +IncludesNoExec -Indexes -MultiViews +SymLinksIfOwnerMatch Options +ExecCGI +IncludesNoExec -Indexes -MultiViews +SymLinksIfOwnerMatch
</Location> </Location>
#if( ${autoconfig} )
<Location /autodiscover/autodiscover.xml>
ProxyPreserveHost Off
ProxyPass https://config.hostsharing.net/hsar/config-v1.1.xml
</Location>
<Location /.well-known/autoconfig/mail/config-v1.1.xml>
ProxyPreserveHost Off
ProxyPass https://config.hostsharing.net/hsar/config-v1.1.xml
</Location>
#end
RewriteEngine On RewriteEngine On
RewriteOptions Inherit 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} !^/cgi-bin/
RewriteCond %{REQUEST_URI} !^/fastcgi-bin/ RewriteCond %{REQUEST_URI} !^/fastcgi-bin/
#if( ${letsencrypt} ) #if( ${letsencrypt} )
@ -130,14 +138,21 @@
Options +ExecCGI +IncludesNoExec -Indexes -MultiViews +SymLinksIfOwnerMatch Options +ExecCGI +IncludesNoExec -Indexes -MultiViews +SymLinksIfOwnerMatch
</Location> </Location>
#if( ${autoconfig} )
<Location /autodiscover/autodiscover.xml>
ProxyPreserveHost Off
ProxyPass https://config.hostsharing.net/hsar/config-v1.1.xml
</Location>
<Location /.well-known/autoconfig/mail/config-v1.1.xml>
ProxyPreserveHost Off
ProxyPass https://config.hostsharing.net/hsar/config-v1.1.xml
</Location>
#end
RewriteEngine On RewriteEngine On
RewriteOptions Inherit RewriteOptions Inherit
#if( ${autoconfig} )
RewriteRule ^/mail/config-v1.1.xml$ ajp://config.hostsharing.net:8009/hsar/config-v1.1.xml [proxy,last]
RewriteRule ^/autodiscover/autodiscover.xml$ ajp://config.hostsharing.net:8009/hsar/config-v1.1.xml [proxy,last]
#end
RewriteCond %{REQUEST_URI} !^/cgi-bin/ RewriteCond %{REQUEST_URI} !^/cgi-bin/
RewriteCond %{REQUEST_URI} !^/fastcgi-bin/ RewriteCond %{REQUEST_URI} !^/fastcgi-bin/
#if( ${letsencrypt} ) #if( ${letsencrypt} )