How to use multiple domains with SSL on Webapps (PHPMyAdmin, Roundcube, etc)?

CarloTav

Verified User
Joined
May 19, 2020
Messages
9
Hello,

It looks like Direct Admin only supports the server's hostname to login to PHPMyAdmin, Roundcube, etc with SSL. Without using the hostname it'll throw out an SSL error because it tries to use the hostnames cert.

How can we work around this? This is an issue if a reseller wants to make use of their own branded login domain for DA.

For instance:

https://hostname.domain.com/roundcube -> SSL Works perfectly fine
https://reseller.domain.com/roundcube -> SSL will throw out an error as it tries to use the "hostname.domain.com" SSL cert, instead of the "reseller.domain.com" SSL cert.

Any help will be appreciated.

Thanks!
 
Without using the hostname it'll throw out an SSL error because it tries to use the hostnames cert.
I can login with https on DA on my domain name, also Roundcube on any domain name and same with phpmyadmin.

I think the problem you're having is that you are trying this via a subdomain. A configuration error somewhere.
I presume you already have an ssl certificate for the subdomain reseller.domain.com correct?

If yes, check your directadmin.conf that it does -not- contain any forced redirect setting and enable_ssl_sni is set to 1.
When you change any of these values, restart directadmin and do a ./build update and ./build rewrite_confs from the custombuild directory before checking if it works.

By the way, why reseller.domain.com and not just domain.com or www.domain.com if the hostname is hostname.domain.com?
 
Which PHP handler do you use?

Maybe this is the cause:
The use_hostname_for_alias option is used to redirect the webapps (squirrelmail, roundcube, phpmyadmin) to the hostname of the server because www.domain.com/squirrelmail will run as the User instead of webapps, which won't work correctly (one of the few drawbacks of FastCGI).

By the way, why reseller.domain.com and not just domain.com or www.domain.com if the hostname is hostname.domain.com?
I think he wanted to say - hostnamedomain.com / resellerdomain.com
 
Back
Top