[RCU] Force ssl with roundcube.

chasd chasd at silveroaks.com
Mon Feb 2 20:05:10 CET 2009

On Feb 2, 2009, at 12:04 PM, Claudio Kuenzler wrote:

> this is all set for apache though, not in roundcube.

Do a Google for "apache redirect https"

Some examples, not sure which one best fits your environment :

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]

RewriteEngine On
RewriteCond   %{SERVER_PORT}  !^443$
RewriteRule ^/secret(.*)$ https://www. example.com/secret/$1 [L,R]

Where any of those goes in the config files is important, it has to  
load before the SSL directives.

Charles Dostale
System Admin - Silver Oaks Communications
824 17th Street, Moline  IL  61265

List info: http://lists.roundcube.net/users/

More information about the users mailing list