1 (edited by mmarif4u 2016-08-01 10:44:46)

Topic: SSL and redirections for root domain and sub domain

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: CentOS 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL/MariaDB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Nope
- Related log if you're reporting an issue:
====

Hi,

I installed iRedMail on CentOS7 and installed letsencrypt certs for root,www and mail domain/sub domain.
Followed the documentation for nginx,postfix,dovecot and everything seems to be fine.

I want to host a simple html page on the root of the site which is /var/www/html/index.html(updated that file).
Now if i access the site, it does not redirect(force) https on root,mail,www etc. Only force the https on mail.domain.com/SOGo(if access exact url). What changes i need to force https for all?

And how do i redirect if someone access mail.domain.com to mail.domain.com/SOGo and host simple one page site in /var/www/html/index.html instead of redirection in it.

Thanks

----

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

2

Re: SSL and redirections for root domain and sub domain

You have to add the http -> https redirection with Nginx.

3

Re: SSL and redirections for root domain and sub domain

Thanks Zhang,
I did manage the nginx setup for http -> https etc.

Have one question though, will 00-default.conf will be overwritten in the next update?

Thanks

4

Re: SSL and redirections for root domain and sub domain

mmarif4u wrote:

will 00-default.conf will be overwritten in the next update?

Upgrading iRedMail by following our tutorial doesn't override it.