This is really light search and it could be a feature i will add later (after my holidays)
First the template to modify is this one to add the new url of
http://SME-Hostname/webmail when the horde webmail is desactivated
[root@sme8 ~]# cat /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/30RoundCubeAliases
{
my $status = $roundcube{'status'} || "disabled";
return " # roundcube is disabled in this VirtualHost"
unless $status eq 'enabled';
if ($port eq "443")
{
$OUT .= " ProxyPass /roundcube/ http://127.0.0.1/roundcube/\n";
}
}
The example we have to trick is this template which can be found in the sogo contrib.
[root@sme8 ~]# cat /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/61SogoSSL
{
my $sslport = $modSSL{'TCPPort'} || '443';
if ($port ne $sslport){
## Redirect Web Address to Secure Address
$OUT .= " RewriteEngine on\n";
$OUT .= " RewriteRule ^/SOGo(/.*|\$) https://%{HTTP_HOST}/SOGo\$1 \[L,R\]\n";
}
$OUT .= " RewriteRule ^/sogo(/.*|\$) https://%{HTTP_HOST}/SOGo\$1 \[L,R\]\n";
$sogoStatus = $sogod{'status'} || "disabled";
$webmailStatus = $imp{'status'} || "disabled";
if (($webmailStatus eq 'disabled') and ($sogoStatus eq 'enabled')) {
$OUT .= " RewriteRule ^/webmail(/.*|\$) https://%{HTTP_HOST}/SOGo\$1 \[L,R\]\n";
}
}
as you can see you have some conditions in the code to use either /sogo or /webmail if horde is deactivated, but i'm really not sure that it works out of the box and it needs some tests.
(Un)fortunately i'm not in my home and i have to use internet by roaming, so i make attention about do not spend too much data
If you can have some good results, can you post the src.rpm!