T
T
Thisisnickname2018-06-05 17:43:20
Apache HTTP Server
Thisisnickname, 2018-06-05 17:43:20

How to use SNI to set SSL for only one domain if there are several more domain names on the same ip?

Hello,

Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/5.4.16
There are about twenty sites on the server, all under the same IP.
You only need to connect SSL to one of them so that the others continue to open over HTTP.
I know that it is possible to do this using SNI.
But I don't configure servers, so I don't know what and where to prescribe
. Please help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Godless, 2018-06-05
@Thisisnickname

No way. More precisely , SNI has nothing to do with it.
SNI is a domain name validation mechanism for HTTPS/SSL - over port 443.
When you attach an SSL certificate to one domain, you will have 20 sites running over HTTP (port 80, no encryption) and one over HTTPS (port 443, encrypted) ).
You are confusing concepts. Just connect the certificate to Apache for site1.ru and see what happens. Don't forget to redirect from site1.ru to https://site1.ru

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question