S
S
Sergey Khlopov2021-04-30 08:03:47
Apache HTTP Server
Sergey Khlopov, 2021-04-30 08:03:47

Why if you go to https on the site and this site does not have an ssl certificate, then another site opens that lies on the server?

Hello, tell me please. There is a problem, there are several sites on the server. One site does not have an ssl certificate, and if I go to this site via https, it transfers to another site, which could be why. Thank you in advance for your response

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Yuriev, 2021-04-30
@Shlop

I’ll try to explain at the level “so that the combine driver understands”, so guys with higher administration experience, please don’t read,
Apache doesn’t feel comfortable with you accepting connections to port 80 (http) and 443 (https, the same traffic as with the certificate )
it's like two different doors to the same building and each has its own concierge
And now the first concierge on port 80 has a mailing list that looks something like this:

  • Vasya.ru
  • petya.ru
  • kolya.ru
  • send all the rest to Vasya.ru (the so-called default)

For the concierge on port 443 (https), the list looks about the same, but the list of recipients known to him is different:
  • Vasya.ru
  • petya.ru
  • send all the rest to Vasya.ru (the so-called default)

Thus, the concierge on port 80 understands where to send requests if they ask for a stake, and the concierge on port 443, from not understanding where to send clients who go to a stake, then sends them to you in (default)
about the same thing will happen if you try to open page not by domain, but by server IP address

D
Dmitry Kuznetsov, 2021-04-30
@dima9595

Because the web server is configured like this. And since you have several sites with the same domain, the one that is specified by the protocol (http/https) is displayed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question