DA redirects from http to https with domain entered

spdy

New member
Joined
Feb 7, 2016
Messages
4
Hello,

I have problem with directadmin when i trying to open DA login page http://srv1.domain.tld:2222.
The problem is that http redirects to https even if in DA config is setuped:
SSL=0
hsts=-1

When i entering DA page with ip (http://xxx.xxx.xxx.xxx:2222) then everything works fine.

I have tryed to enable ssl by folowing this tutorial:
http://help.directadmin.com/item.php?id=15

But then i`m getting error: This site uses HTTP Strict Transport Security (HSTS) to specify that Firefox

With chrome it wont open it at all (some time before with chrome it didnt worked, but with firefox after cache/cookyes creal it started to work)

In httpd logs i can see:

[Sun Feb 07 22:04:50.706315 2016] [core:error] [pid 75703] [client xxx.xxx.xxx.xxx:4762] AH00126: Invalid URI in request t3 12.1.2
2016-02-07 22:06:27 fork failed for TLS check
2016-02-07 22:06:28 fork failed for TLS check
2016-02-07 22:06:29 fork failed for TLS check
2016-02-07 22:07:41 fork failed for TLS check

in DA error.log i can see:
2016:02:07-22:08:25: Can't connect to ssl!
2016:02:07-22:08:25: -> A failure in the SSL library occurred, usually a protocol error.
2016:02:07-22:08:25: -> error:00000001:lib(0):func(0):reason(1)

but i think this error apears only when ssl is enabled.

OS: cloudlinux 6
DA: 1.49.1

Thank you for helping
 
Hello,

You should disable "HTTP Strict Transport Security (HSTS)" for srv1.domain.tld, and probably for domain.tld. Or make sure you don't specify "includeSubDomains" for domain.tld.
 
Back
Top