Okay, let´s start at the beginning: First
Code:
cd /usr/local/directadmin/custombuild
./build update
./build set use_hostname_for_alias yes
./build set redirect_host_https yes
./build rewrite_confs
to be sure you build everything right.
If you access it directly through
https://your.server.name/roundcube, do you see a secured connection?
because maybe you mean that you want to FORCE http to https if anypone try to access through unsecured http, then add (Credit goes to zEitEr) near the bottom of the /etc/httpd/conf/extra/httpd-includes.conf the following:
Code:
################################################################################
# HTTP to HTTPS Rewrite
################################################################################
<location /phpMyAdmin>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</location>
<location /webmail>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</location>
<location /squirrelmail>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</location>
<location /roundcube>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</location>
<location /atmail>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</location>
then restart httpd (Apache)