Discussion:
[RCU] Xampp, hMailServer and Roundcube
Cory Waltzer
2014-02-20 20:03:14 UTC
Permalink
Hello,



I am a noob as far as webservers go and have been attempting to redirect
webmail clients through Roundcube to https rather than http. Does anyone
have any advice on how to accomplish this using XAMPP on hMailServer with
Roundcube on a Windows machine?



Thank you in advance!



Cory Waltzer | Network Administrator | Hal Leonard | 507-474-9917 |
<mailto:cwaltzer.halleonard at outlook.com> cwaltzer at halleonard.us



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.roundcube.net/pipermail/users/attachments/20140220/f24fb039/attachment.html>
Marcel Herrguth
2014-02-21 11:09:10 UTC
Permalink
Hello,

a warning at the beginning: XAMPP should not be used in productive
enviroments. So basically not if it's serves on internet.
Post by Cory Waltzer
I am a noob as far as webservers go and have been attempting to redirect
webmail clients through Roundcube to https rather than http. Does anyone
have any advice on how to accomplish this using XAMPP on hMailServer
with Roundcube on a Windows machine?
There's an option inside the main configuration file of roundcube...:

// enforce connections over https
// with this option enabled, all non-secure connections will be redirected.
// set the port for the ssl connection as value of this option if it
differs from the default 443
$rcmail_config['force_https'] = true;

If you want to do more:

You can accomplish this with a virtual host for port 80 (if applicable)
and also one for port 443.

You can find those configs in /path-to-xampp/apache/conf/extra/
httpd-vhost.conf and httpd-ssl.conf is what you need. In vhost (port 80)
you'll need to add the following rewrite rule (which would also work on
.htaccess):

RewriteEngine on
RewriteCond %{HTTP_HOST} ^([a-z.]+)$ [NC]
RewriteRule ^/(.*)$ https://www.example.com/$1 [R=301,L]

This will automatically redirect to https - now you just need to make
sure your ssl conf is configured well. For help on that topic, you can
consult the apache documentation.

Best regards
Marcel
--
www.mrgeneration.de - The home of Anime
Marcel Herrguth Tel: 0176/65 92 44 85
Kl?berstr. 25
12249 Berlin, Germany

The home of Anime @
Facebook:https://www.facebook.com/mrgeneration.de
Twitter: https://twitter.com/Mr_Generation
Loading...