V
V
virtusIV2016-11-24 18:08:14
Nginx
virtusIV, 2016-11-24 18:08:14

NGINX: Terminate connection at 443 for a domain that does not have a certificate. Maybe?

There is a standard config. 10 sites. 2 of them with SSL certificates. If you add https to any of the 8 certificateless sites , the browser will swear that the site wants to slip the certificate of another site :(
How can I avoid this?
You either need to reset the connection altogether or redirect to port 80.
Thank you.

nginx -V
nginx version: nginx/1.10.2
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC)
built with OpenSSL 1.0.2h  3 May 2016
TLS SNI support enabled

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Valle, 2016-11-24
@v1pby

In any case, it will swear, since SSL handshake is earlier than HTTP (if we talk about redirect)

A
Andrey Zubkov, 2017-03-10
@zubkov_work

Write down

location /laravel {
root /var/www/laravel/public;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question