Hostname errors

Abdhesh

Verified User
Joined
Jun 27, 2024
Messages
5
Hello,

Previously the DA was working on server-my-ip.da.direct:2222 I have now changed it according to me.
The directadmin is working fine with new hostname but it is also wotking with server-my-ip.da.direct:2222 without SSL.
I don't want to use it on server-my-ip.da.direct:2222 is it possible?
 
#./directadmin/conf/directadmin.conf
Code:
ssl_redirect_host=your.hostname.com
force_hostname=your.hostname.com
and restart "directadmin.service"

these options should redirect all connection into your current hostname.
 
Last edited:
ahh forgot to mention.

/usr/local/directadmin/conf/directadmin.conf

or via Admin "File Editor" in control panel.
 
You don't need the "force hostname" setting at all normally.

I would suggest to remove that server-xx-xx-xx.da.direct hostname and create your own.
Check all these steps:

If still working with the da.direct hostname then remove that from the /etc/hosts file.
Also be sure to use the server_cert directive to create a new ssl certificate for your correct hostname.
 
Back
Top