Adding cpanel subdomains an cpanel ports to DA

apogee

Verified User
Joined
Jul 6, 2019
Messages
220
Location
EU
We'll migrate all cpanel servers to DA. We found out after the first experiences that we've to implement some stuff to avoid customer calls / cancelations.

To be exact:
- How to add suddomains (webmail, cpanel) to DA accounts, automatically (and sign the SSL Certs)?
- How can DA be proxyed or redirected to send the users to the right place if the connect on cp ports like 2086, 2087, 2095 and 2096?
 
As mentioned in https://forum.directadmin.com/showthread.php?t=58062:
Q: How to make webmail.domain.com available, as now only domain.com/webmail works?

A: https://help.directadmin.com/item.php?id=92

Q: How to make DirectAdmin listen on port 2082 for HTTP requests and port 2083 for HTTPs?

A: Just set the following settings in /usr/local/directadmin/conf/directadmin.conf and restart DirectAdmin:
port=2082
ssl_port=2083

If you would like to let customers use just the SSL on port 2083, set:
ssl=1
port=2083
Related: https://help.directadmin.com/item.php?id=2101

CSF can be used for port redirection, if you'd like to redirect them all. Regarding other subdomains - it can be done in a similar way as webmail. To automatically have them included into Let's Encrypt cert: https://www.directadmin.com/features.php?id=1851

I hope this answers your questions :)

Thank you!
 
Awesome, thanks a lot!

I find it really hard to find all this doku stuff
 
New documentation system from 0 is planned :) Stay tuned.
 
Back
Top