1

Topic: redirection to secure http

Hello All,

I installed iredmail and really love it. I am a linux newbie and have a couple of questions though.For some reason the board does not want to allow me to post the message as it thinks I am posting some links. Therefore I attached my couple of questions as a file.

Thanks for your help,

Bruno

Post's attachments

iredmail_forum_post.txt 379 b, 2 downloads since 2012-05-27 

You don't have the permssions to download the attachments of this post.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: redirection to secure http

Where are the settings for redirection from http to https? I would like to have roundcube through https only, just like the phpmyadmin and rest of admin links.

Several ways:

1: Make it accessible via HTTPS only in Apache.
2: Set 'force_https' to true in Roundcube config file (main.inc.php).

Also, I would like to have the links automatically redirected to https from http. Now when I open http link to iredadmin I get a page not found error. It only works with https. How to set up the automatic redirection?

The easiest way is:

1) creating an empty directory, 'iredadmin' under Apache document root, then it's accessible via http: http://your_server/iredadmin/
2) creating a html file, index.html, under this new directory. With content:

<html>
    <head>
        <meta HTTP-EQUIV="REFRESH" content="0; url=httpS://your_server/iredadmin/">
    </head>
</html>

3

Re: redirection to secure http

Hello Zhang,

Thanks for your prompt reply. Works like a charm.

Regards,

B

4

Re: redirection to secure http

Not mean to hijack this thread but I am able to make roundcubemail to use https instead of http by edit /var/www/roundcubemail/config/main.inc.php

$rcmail_config['force_https'] = true;

PS: I think it would be a good idea to make roundcubemail to use https as default in iRedMail.

5

Re: redirection to secure http

hata_ph wrote:

PS: I think it would be a good idea to make roundcubemail to use https as default in iRedMail.

Yes, it will be redirected to https by default in next release, iRedMail-0.8.1.

6

Re: redirection to secure http

Nice smile