force_hostname results in endless loop while running SSL

Manie

Verified User
Joined
Jul 18, 2006
Messages
124
Location
Utrecht / Netherlands
Hi all,

Since the recent updates something that used to work; does not work anymore.

I have SSL for my DA control panel installed.
I had both configured:
ssl_redirect_host=vps1.domain.com
force_hostname=vps1.domain.com

When surfing to: http://vps1.domain.com:2222 normally got redirected to https://vps1.domain.com:2222
Secondly the force_hostname made sure when someone surfed to http://123.123.123.123:2222 the magic made sure the hostname was there (So the SSL certificate would validate.)

However the force_hostname results in the browser going banana's: (TO MANY REDIRECTS)
There must be some issue that these two attributes are conflicting.

Is there a place where these request get logged? (Since it's not httpd but DirectAdmin the regular apache error logs won't apply)

Any help is greatly appreciated.

Armand
 
The redirects still work on my servers when I test, and I don't have any no loop in the browser. However I don't have any force_hostname= value, I think that value maybe no longer apply in newest DirectAdmin. I guess your problem will be solved by removing that value. I only have these:

In custombuild/options.conf:
Code:
use_hostname_for_alias=yes
redirect_host=host.name.com
redirect_host_https=yes

In directadmin.conf:
Code:
ssl_redirect_host=host.name.com
 
Back
Top