DirectAdmin Knowledge Base and Support

DirectAdmin is a web panel for a simple administration of both virtual and dedicated servers. DirectAdmin is faster, safe and more powerful than any other CP. And we know how to customize and support it.

How to set roundcube as the default webmail client in Directadmin

| 17:30:11 21.10.2015

All what you need is to add webmail_link=roundcube into directadmin.conf and rewrite settings:

echo "webmail_link=roundcube" >> /usr/local/directadmin/conf/directadmin.conf
/etc/init.d/directadmin restart
cd /usr/local/directadmin/custombuild
./build update
./build rewrite_confs

with this you will get /etc/httpd/conf/extra/httpd-alias.conf with the following content:

Alias /config /var/www/html/redirect.php
Alias /roundcube /var/www/html/roundcube
Alias /webmail /var/www/html/roundcube
Alias /phpMyAdmin /var/www/html/phpMyAdmin
Alias /phpmyadmin /var/www/html/phpMyAdmin
Alias /pma /var/www/html/phpMyAdmin

and /etc/nginx/webapps.hostname.conf (if nginx is used):

        location /phpmyadmin {
                rewrite ^/* /phpMyAdmin last;
        }       location /pma {
                rewrite ^/* /phpMyAdmin last;
        }       location /webmail {
                rewrite ^/* /roundcube last;
        }       if ($request_method !~ ^(GET|HEAD|POST)$ ) {
                return 444;
        location ~ /(\.htaccess|\.htpasswd|\.user\.ini) {
                deny all;

There is no need to customize those files any longer and put them into /usr/local/directadmin/custombuild/custom/

About Us
We are a team of professionals, and specialize in installation, configuring and managing of remote virtual and dedicated servers powered by Linux/Unix-like OS with DirectAdmin. We support various sets of software, including web-servers Apache, Nginx; internet domain name servers Bind, PowerDNS; mail-servers with POP3, IMAP and SMTP, FTP-servers, etc. After years of working through the most complex server challenges our team has gathered valuable experience and universal solutions suitable for everyday tasks. We are here to lend you a helping hand and take care of your servers in order to let you have enough time to do more of what you love.

All of the information and data on this site is for informational purposes only and is provided for the convenience of the user.
Powered by: Amiro.CMS - Free edition