http://hostname:2222 redirects to https://ip:2222

Amplificator

Verified User
Joined
Jul 2, 2019
Messages
61
Hi, I'm having an issue where http://hostname:2222 will redirect to https://ip:2222 which will cause an SSL error as there is only a certificate for the hostname, of course.

How can I get http to redirect to the hostname? I have the following set in custombuild:

Code:
use_hostname_for_alias=yes
redirect_host=my.hostname.com
redirect_host_https=yes

Any solution to this?
 
DirectAdmin redirects are managed in /usr/local/directadmin/conf/directadmin.conf. Check force_hostname and ssl_redirect_host options for this.
 
Back
Top