As per the instructions at https://www.directadmin.com/features.php?id=2377 I have set the global force_ssl to 1 (cd /usr/local/directadmin; ./directadmin set force_ssl 1). I have confirmed that force_ssl=1 in /usr/local/directadmin/conf/directadmin.conf
If I log into DA as the user, Domain Setup > domain.com > 'Force SSL with https redirect' is ON. But SSL Certificates > 'Force SSL with https redirect' is OFF. The redirect in a browser doesn't work for either domain.com or www.domain.com.
If I untick and re-tick 'Force SSL with https redirect', the redirect works correctly.
It seems that if /usr/local/directadmin/data/users/username/domains/domain.com.conf has force_ssl=1 set, the redirect works. If it is not, even if the global directadmin.conf option is force_ssl=1, the redirect doesn't work! Is this a bug or am I missing something?
If I log into DA as the user, Domain Setup > domain.com > 'Force SSL with https redirect' is ON. But SSL Certificates > 'Force SSL with https redirect' is OFF. The redirect in a browser doesn't work for either domain.com or www.domain.com.
If I untick and re-tick 'Force SSL with https redirect', the redirect works correctly.
It seems that if /usr/local/directadmin/data/users/username/domains/domain.com.conf has force_ssl=1 set, the redirect works. If it is not, even if the global directadmin.conf option is force_ssl=1, the redirect doesn't work! Is this a bug or am I missing something?