HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2020-02-19 28ca6a80083677c15c60b0bd8778bdb9e9e39e4f
adjust autoconfig vhost template
1 files modified
33 ■■■■ changed files
hsarback/src/de/hsadmin/mods/dom/apache-vhost.vm 33 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/dom/apache-vhost.vm
@@ -48,12 +48,20 @@
        Options +ExecCGI +IncludesNoExec -Indexes -MultiViews +SymLinksIfOwnerMatch
    </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
    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/
@@ -130,13 +138,20 @@
        Options +ExecCGI +IncludesNoExec -Indexes -MultiViews +SymLinksIfOwnerMatch
    </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
    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} !^/fastcgi-bin/