A
A
Artyom Novolodsky2016-04-12 03:14:21
Apache HTTP Server
Artyom Novolodsky, 2016-04-12 03:14:21

How to make a redirect in apache from one domain to another, when accessing via https, if the first domain does not have a valid certificate?

Domain A does not have a certificate, domain B does. It is necessary, when accessing domain A via https , to redirect to domain B also via https . The problem is that when accessing domain A , even at the stage of establishing an encrypted connection, the browser swears at the certificate (because it is not suitable for domain A ), and it doesn’t get to the redirect ..

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey, 2016-04-12
@Tmch

And there is. Things will not come to a redirect.

V
Vlad Zhivotnev, 2016-04-12
@inkvizitor68sl

No way. An https connection (including certificate verification) is established BEFORE sending any http requests (except for the case with SNI, where the Host is sent in advance). Redirect - the response of the web server is already.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question