webmail https redirect

ssgill

Verified User
Joined
May 9, 2012
Messages
168
Hello, trying to figure out how to serve webmail on https always. If http is typed it doesn't redirect to https. I have tried most of the suggestions in forum, setting up "ssl_redirect_host" settings
added to /usr/local/directadmin/custombuild/custom/ap2/conf/extra/httpd-includes.conf

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

But nothing works, any help would be appreciated.
Thanks
 
Thanks for helping out, just want to update that these 3 custom build options did worked redirecting to server host for all domains

"use_hostname_for_alias", "redirect_host" & "redirect_host_https"

But maybe this is not what i want, webmail url on domain is what i was looking for.

Will follow the link provided and see if that works.

Thanks
 
added to /usr/local/directadmin/custombuild/custom/ap2/conf/extra/httpd-includes.conf
these files need to execute the rewrite command,
Code:
da build rewrite_confs

so...
It's should work, but you just adding in the wrong directory, if you want to testing before put in the customize mechanism, you must insert into "/etc/httpd/" directory.
 
But maybe this is not what i want, webmail url on domain is what i was looking for.
Normally when a domain has ssl it works automatically with the browser.
You could probably use the force_ssl=1 parameter in directadmin.conf but keep in mind this would automatically force all domains to ssl. In some cases that might not be requirable.
 
Back
Top