1 (edited by alakentu 2021-02-26 23:42:56)

Topic: Redirect https://domain.tld/mail to https://mail.domain.tld (nginx)

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.2
- Deployed with iRedMail Easy or the downloadable installer? Installer
- Linux/BSD distribution name and version: Debian 10.8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi,

I have looked for how to redirect from domain.tld/mail/ to mail.domain.tld/ and I still have not been able to achieve it.

I have read that deleting the index.html from /var/www/html/ but that does not work for me.

How can I do it, what should I configure or "deconfigure" to achieve it ...

Thank you very much in advance.

----

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

2

Re: Redirect https://domain.tld/mail to https://mail.domain.tld (nginx)

Update file /var/www/html/index.html and set the redirect url to the one you want.

3

Re: Redirect https://domain.tld/mail to https://mail.domain.tld (nginx)

ZhangHuangbin wrote:

Update file /var/www/html/index.html and set the redirect url to the one you want.

it doesn't work, an infinite loop is created and it never opens the desired address.

my hostname is "correo" in spanish, and hostname -f returns correo.gonzorm.tk.
I want opening correo.gonzorm.tk to open roundcube directly without redirection.

Thanks

4

Re: Redirect https://domain.tld/mail to https://mail.domain.tld (nginx)

Add a new nginx web host under /etc/nginx/sites-available/ (and link to /etc/nginx/sites-enabled/) for correo.gonzorm.tk.