Changes

From SME Server
Jump to navigationJump to search
589 bytes added ,  16:22, 20 October 2013
Line 254: Line 254:  
       $OUT .= "    ProxyPass /foo http://127.0.0.1/foo\n";
 
       $OUT .= "    ProxyPass /foo http://127.0.0.1/foo\n";
 
     }
 
     }
 +
}
 +
 +
or this solution which does the automatic redirection to https protocol, you have to choose either 30FooAlias or 60FooAlias but not both.
 +
 +
root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/60FooAlias
 +
 +
{
 +
    my $status = $roundcube{'status'} || "disabled";
 +
    return "    # roundcube is disabled in this VirtualHost"
 +
            unless $status eq 'enabled';
 +
 +
{
 +
if ($port ne "443")
 +
{
 +
$OUT .= <<'HERE';
 +
## Redirect roundcubeWeb Address to Secure Address
 +
RewriteEngine on
 +
RewriteRule ^/roundcube https://%{HTTP_HOST}/roundcube
 +
 +
## End Of Redirect
 +
HERE
 +
}
 +
}
 +
 
  }
 
  }
  

Navigation menu