Please help me can't log in to the DA both ip and hostname.

nhamvu

New member
Joined
Nov 1, 2019
Messages
1
Hello.

I had a problem after installing ssl for my hostname server, and after the installation was completed I could no longer access the admin by the path of the IP or the path of server.domain.com.

Unable to access this website server.domain.com has refused to connect.
Please try:

Checking connection
Check proxies and firewalls
ERR_CONNECTION_REFUSED

Can someone show me how to fix this problem, or can remove ssl as root to be able to access the admin via IP or through the host name.

Thanks.
 

Richard G

Verified User
Joined
Jul 6, 2008
Messages
4,218
Location
Maastricht
Check your firewall.
Check /usr/local/directadmin/data/admin/ip_blacklist if your ip is in there.
Login via SSH, go to /usr/local/directadmin/conf and edit directadmin.conf.
Remove (evt. temporarily) the line:
Code:
ssl_redirect_host your.hostname.com
and restart directadmin.
If it still not works, change in directadminconf ssl=1 to ssl=0 and restart directadmin.
SSL redirection is not present anymore and you should be able to use either ip or hostname to login.
 
Top