1 (edited by sbignell 2018-12-05 08:59:19)

Topic: Nginx redirect /admin to /iredadmin

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8
- Linux/BSD distribution name and version: Centos7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- 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

This is probably a silly question but haven't used nginx before.

I want /iredadmin AND /admin to work but i'm having trouble. I've gotten it working by adding ..

# iRedAdmin: redirect /admin to /iredadmin/
location = /admin {
    rewrite ^ /iredadmin/;
}

to the bottom of the "iredadmin.tmpl" file, but I assume this will be overwritten when the next update comes. I would have thought I would need to add it in the "00-default-ssl.conf" file but any way i've tried hasn't worked.

Help!

----

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

2

Re: Nginx redirect /admin to /iredadmin

sbignell wrote:

but I assume this will be overwritten when the next update comes

If you deploy iRedMail with iRedMail-0.9.8 (the downloadable installer), it will not be overwritten.