redirect problem

Ramsy

Verified User
Joined
Dec 25, 2005
Messages
60
Location
London, UK
Hi,

I'm having a problem with a customer's redirect.
I've turned SSL=1 and the redirect on in directadmin.conf.
It works fine for customers trying to connect to http://www.customerdomain.com:2222.
It redirects to https://www.validsslcertificatedomein.com:2222.
Which is fine.
Now when a customer with SSL enabled, but no valid SSL cert tries to connect to httpS://www.customerdomain.com:2222 it gives a certificate error.
How am I able to redirect this customer to the server valid SSL cert as wel?

With other words I want to redirect a customers login to port 2222 always to the servers url with correct certificate.
 
Hello,

option to specify the redirect host value when http is used on an https protocol.
If you've enabled SSL=1 and the User enters http, then DA will give them the server IP redirect by default. This option will allow the admin to specify the value of the hostname in the redirect, which has an added benefit of forcing them to use the host that matches the certificate to valid ssl errors.

The directadmin.conf option will be:
ssl_redirect_host=host.name.com

The default setting is for the value to not be present in the directadmin.conf.
When it's not present, the server IP will be used. With the option present, it's value will be used (even it's it's blank) so make sure it only there if you want to use it.

http://www.directadmin.com/features.php?id=801
 

Yup, I know. But this isnt http > https.
It's from https > https.

Already have that the stated above configured.

This is for a client who has SSL enabled for his account, but hasn't got a valid SSL certificated yet.
The feature I am looking for is to always redirect a client (or a port 2222 request) to the server valid SSL cert at port 2222 with SSL
 
Ohh, yes I see. You can try to set some kind of a reverse proxy on *:2222 and check hostname. Or, you might want to request this feature with a next DA release, since I do not know, how to make what you want with less pain.
 
Back
Top