|
|
|
@ -2,8 +2,9 @@ |
|
|
|
|
{ |
|
|
|
|
$sogoStatus = $sogod{'status'} || "disabled"; |
|
|
|
|
$webmailStatus = $imp{'status'} || "disabled"; |
|
|
|
|
$style = $sogod{'WebServerResources'} || '/usr/lib/GNUstep/SOGo/WebServerResources/'; |
|
|
|
|
$style = '/usr/lib/GNUstep/SOGo/WebServerResources/' unless ( -d $style); |
|
|
|
|
my $lib = ( -d '/usr/lib64' ) ? 'lib64':'lib'; |
|
|
|
|
$style = $sogod{'WebServerResources'} || '/usr/' . $lib . '/GNUstep/SOGo/WebServerResources/'; |
|
|
|
|
$style = '/usr/' . $lib . '/GNUstep/SOGo/WebServerResources/' unless ( -d $style); |
|
|
|
|
$style =~ s#$#/# unless ( $style =~ m#/$# ); |
|
|
|
|
|
|
|
|
|
$OUT = ""; |
|
|
|
@ -24,7 +25,7 @@ SetEnvIf Host (.*) REQUEST_HOST=$1 |
|
|
|
|
Alias /.woa/WebServerResources/ {"$style";} |
|
|
|
|
Alias /SOGo.woa/WebServerResources/ {"$style";} |
|
|
|
|
Alias /SOGo/WebServerResources/ {"$style";} |
|
|
|
|
AliasMatch /SOGo/so/ControlPanel/Products/(.*)/Resources/(.*) /usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2 |
|
|
|
|
AliasMatch /SOGo/so/ControlPanel/Products/(.*)/Resources/(.*) /usr/{$lib}/GNUstep/SOGo/$1.SOGo/Resources/$2 |
|
|
|
|
|
|
|
|
|
<Directory {"\"$style\"";}> |
|
|
|
|
AllowOverride None |
|
|
|
|