Topic: nginx configuration question
==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Centos 7.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Maria
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi,
I will start this off by saying I am an nginx novice. I have a lot of experience with Apache.
I am trying to get nginx to redirect http(s)://mail.mydomain.com to https://mail.example.com. In apache all I need to do is add 1 line to the config file similar to: RewriteRule ^/?iredadmin/(.*) https://mail.example.com/iredadmin/$1 [R,L] and I get the desired behavior.
In looking at the nginx configuration I do not see an easy way to accomplish what I want.
To be clear I have SOGo and iRedAdmin-pro installed. No roundcube.
Suggestions?
Regards,
Tom
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.