1

Topic: URL forwarding

==== Required information ====
- iRedMail version (check /etc/iredmail-release): latest
- Linux/BSD distribution name and version: Debian 8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySql
- Web server (Apache or Nginx): Apache
====
Hey!
I just want to ask if it is possible to change example.com/mail to mail.example.com. It is is, how? Also I want to change example.com/iredadmin to mail.example.com/admin.

I hope someone can help me.

Thanks! smile

----

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

2

Re: URL forwarding

Sure you can.

verwaltung.janek wrote:

change example.com/mail to mail.example.com

Add a new virtual web host for mail.example.com, and use Roundcube as the DocumentRoot.

verwaltung.janek wrote:

Also I want to change example.com/iredadmin to mail.example.com/admin.

Replace the uri '/iredadmin' in Apache config file.

3

Re: URL forwarding

ZhangHuangbin wrote:

Sure you can.

verwaltung.janek wrote:

change example.com/mail to mail.example.com

Add a new virtual web host for mail.example.com, and use Roundcube as the DocumentRoot.

verwaltung.janek wrote:

Also I want to change example.com/iredadmin to mail.example.com/admin.

Replace the uri '/iredadmin' in Apache config file.

It works well, but if I go to example.com/mail or to a subdomain /mail it opens roundcube. I have disabled the aliases in all vhost. How can i disable the example.com/mail and ONLY use mail.example.com

Thanks smile

4

Re: URL forwarding

Disable template /etc/nginx/templates/roundcube.tmpl in file /etc/nginx/sites-enabled/00-default-ssl.conf.