1

Topic: change url from mydomain.com/mail to mail.mydomain.com

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- 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.
====

I want to change my URL from mydomain.com/mail to mail.mydomain.com I'm using Nginx with MySQL
any help

----

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

2

Re: change url from mydomain.com/mail to mail.mydomain.com

if you name your mail server mail.mydomain.com then that will automatically go to mail.mydomain.com/mail when you go to the URL

Just update the DNS A/CNAME record in your DNS Zone.

That's a whole lot easier than modifying the Nginx site files to do what you want.

3

Re: change url from mydomain.com/mail to mail.mydomain.com

MuPp3t33r wrote:

if you name your mail server mail.mydomain.com then that will automatically go to mail.mydomain.com/mail when you go to the URL

Just update the DNS A/CNAME record in your DNS Zone.

That's a whole lot easier than modifying the Nginx site files to do what you want.

i updated that. i want to go to mail.mydomain.com without /mail

4

Re: change url from mydomain.com/mail to mail.mydomain.com

- You can create a new virtual web host and include /etc/nginx/templates/roundcube-subdomain.tmpl in web host config file, it serves Roundcube on home page.
- If you don't want a new virtual web host, then edit /etc/nginx/sites-enabled/00-default-ssl.conf, replace 'roundcube.tmpl' by 'roundcube-homepage.tmpl', then move this line and "root" line to the bottom (still inside the "server {}" block). for example:

server {
    ...
    include /etc/nginx/templates/roundcube-homepage.tmpl;
    root /var/www/html;
}

5

Re: change url from mydomain.com/mail to mail.mydomain.com

it works.
thank you <3