|
|
@ -2,6 +2,7 @@ |
|
|
|
{ |
|
|
|
{ |
|
|
|
$sogoStatus = $sogod{'status'} || "disabled"; |
|
|
|
$sogoStatus = $sogod{'status'} || "disabled"; |
|
|
|
$webmailStatus = $imp{'status'} || "disabled"; |
|
|
|
$webmailStatus = $imp{'status'} || "disabled"; |
|
|
|
|
|
|
|
$activeSync = $sogod{'ActiveSync'} || 'disabled'; |
|
|
|
my $lib = ( -d '/usr/lib64/GNUstep/SOGo/WebServerResources' ) ? 'lib64':'lib'; |
|
|
|
my $lib = ( -d '/usr/lib64/GNUstep/SOGo/WebServerResources' ) ? 'lib64':'lib'; |
|
|
|
$style = $sogod{'WebServerResources'} || '/usr/' . $lib . '/GNUstep/SOGo/WebServerResources/'; |
|
|
|
$style = $sogod{'WebServerResources'} || '/usr/' . $lib . '/GNUstep/SOGo/WebServerResources/'; |
|
|
|
$style = '/usr/' . $lib . '/GNUstep/SOGo/WebServerResources/' unless ( -d $style); |
|
|
|
$style = '/usr/' . $lib . '/GNUstep/SOGo/WebServerResources/' unless ( -d $style); |
|
|
@ -20,6 +21,17 @@ ScriptAlias /sogo-cgi-bin /usr/share/SOGo/cgi-bin |
|
|
|
|
|
|
|
|
|
|
|
ProxyPass /SOGo/casProxy http://localhost/sogo-cgi-bin/cas-proxy-validate |
|
|
|
ProxyPass /SOGo/casProxy http://localhost/sogo-cgi-bin/cas-proxy-validate |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if ($activeSync =~ m/^enabled|on|1|yes$/i){ |
|
|
|
|
|
|
|
$OUT .=<<"HERE"; |
|
|
|
|
|
|
|
ProxyPass /Microsoft-Server-ActiveSync http://127.0.0.1:$sogod{'TCPPort'}/SOGo/Microsoft-Server-ActiveSync retry=60 connectiontimeout=5 timeout=360 |
|
|
|
|
|
|
|
HERE |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
|
|
|
|
$OUT .= "# ActiveSync is disabled\n"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ProxyPass /SOGo http://127.0.0.1:{$sogod{'TCPPort'}}/SOGo |
|
|
|
ProxyPass /SOGo http://127.0.0.1:{$sogod{'TCPPort'}}/SOGo |
|
|
|
ProxyPassReverse /SOGo http://127.0.0.1:{$sogod{'TCPPort'}}/SOGo |
|
|
|
ProxyPassReverse /SOGo http://127.0.0.1:{$sogod{'TCPPort'}}/SOGo |
|
|
|
SetEnvIf Host (.*) REQUEST_HOST=$1 |
|
|
|
SetEnvIf Host (.*) REQUEST_HOST=$1 |
|
|
|