DirectAdmin – Change Default Webmail Login url


In this tutorial we will learn how to change the webmail login path or url in DirectAdmin hosting control panel.

Default Webmail Login url

The default webmail login path depends on the webmail client you have enabled on the server. Most probably it is roundcube. So, the default webmail login url will be:

How To Change Webmail Path

So, how can we change the webmail login url to something more user friendly like:

In this tutorial, we will change the webmail login url to:


You need SSH access to the server.

Step 1:

Login to your server via SSH as root user.

Step 2:

Navigate to following directory.

cd /etc/httpd/conf/extra/

Create backup file

We will modify httpd-alias.conf file.
Before making any change, let us first make a backup copy of this file.

cp httpd-alias.conf httpd-alias-backup.conf_

Edit the file

Open httpd-alias.conf in any text editor. I am using here nano.

nano httpd-alias.conf

In this file find this line.

Alias /roundcube /var/www/html/roundcube

Change the above line to:

Alias /mail /var/www/html/roundcube

Save the file using keys: ctrl + o
Exit the nano editor using keys: ctrl + x

Restart Apache

service httpd restart

Now new webmail login url will be:

Hope this tutorial was helpful to you.

Our Top Rated Host

Related Posts