ipasserelle-groupware/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/85SOGoAccess

37 lines
1.2 KiB
Plaintext
Raw Normal View History

2012-03-14 22:25:52 +01:00
# SOGo Groupware
{
$sogoStatus = $sogod{'status'} || "disabled";
$webmailStatus = $imp{'status'} || "disabled";
2012-06-18 22:25:51 +02:00
my $lib = ( -d '/usr/lib64' ) ? 'lib64':'lib';
$style = $sogod{'WebServerResources'} || '/usr/' . $lib . '/GNUstep/SOGo/WebServerResources/';
$style = '/usr/' . $lib . '/GNUstep/SOGo/WebServerResources/' unless ( -d $style);
2012-03-14 22:25:52 +01:00
$style =~ s#$#/# unless ( $style =~ m#/$# );
$OUT = "";
}
ProxyPass /SOGo http://127.0.0.1:{$sogod{'TCPPort'}}/SOGo
ProxyPassReverse /SOGo http://127.0.0.1:{$sogod{'TCPPort'}}/SOGo
SetEnvIf Host (.*) REQUEST_HOST=$1
<Location /SOGo>
order deny,allow
deny from all
allow from all
SSLRequireSSL on
AddDefaultCharset UTF-8
RequestHeader set "x-webobjects-server-url" "https://%\{REQUEST_HOST\}e/SOGo"
</Location>
Alias /.woa/WebServerResources/ {"$style";}
Alias /SOGo.woa/WebServerResources/ {"$style";}
Alias /SOGo/WebServerResources/ {"$style";}
2012-06-18 22:25:51 +02:00
AliasMatch /SOGo/so/ControlPanel/Products/(.*)/Resources/(.*) /usr/{$lib}/GNUstep/SOGo/$1.SOGo/Resources/$2
2012-03-14 22:25:52 +01:00
<Directory {"\"$style\"";}>
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>