how to redirect IP login to domain login?

B3rt

Verified User
Joined
Oct 12, 2007
Messages
81
I installed and activated SSL and it works.

But when i connect to https://123.456.789.10:2222 i get and SSL error
When i connect to https://my.servername.tld:2222 i get a login screen

I am looking a way to auto redirect visitors which connect on IP to be redirected to the valid domain login.

I added already ssl_redirect_host=my.servername.tld but this only works when connected from non ssl, so when connected from http://123.456.789.10:2222 but not when using https://123.456.789.10:2222

Who knows how to redirect from https://123.456.789.10:2222 to https://my.servername.tld:2222 ?
 
i know is fails with a SSL error, that is the problem which i am trying to prevent.

I needed this for users which stil connect to https://ip:2222 to our servers to force them to a redirect to https://domainname:2222

So the help link you specify has also no effect.....
 
It works as described: :)

... if this feature is used, DA checks the Host header passed. If the value doesn't match, DA redirects the User to the value set in the feature.

1. Make sure you've got an empty line in the bottom of directadmin.conf
2. Make sure to restart directadmin:

Code:
killall -9 directadmin
if it's necessary

3. Check with another browser, or use wget -d https://ip:2222/ to see headers.
 
Back
Top