Topic: Nginx 1.8 and broke http to https redirect
==== Required information ====
- iRedMail version (check /etc/iredmail-release): lastest
- Linux/BSD distribution name and version: U 14.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx 1.8
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====
When I update Nginx to 1.8, it asked to replace the iRedMail-modified nginx.conf with the latest nginx.conf, I accepted that, and my site had broke http to https redirect
I run sudo nginx -t and face below warnings:
nginx: [warn] conflicting server name "_" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "_" on [::]:80, ignored
After checking, I replace the server_name in both http and https as follows:
Old:
server_name _;
New:
sever_name mail.example.com;
and it works!
Do I have to modify anything to make sure that iRedMail is in good configuration?
Thank you and best regards,
Quy
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.