M
M
macstuff2019-03-29 22:53:41
Nginx
macstuff, 2019-03-29 22:53:41

Is it possible to connect via https without redirecting from http to nginx?

Now the server accepts a request on port 80 and makes a redirect, is it possible to completely exclude an unsecured connection and remove the redirect?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
ky0, 2019-03-29
@ky0

If you mean at the network level, then no. The browser uses the http scheme when connecting, if you try to start an SSL handshake at the same time, everything will fall apart. What's wrong with an unconditional redirect?

M
Mysterion, 2019-03-29
@Mysterion

Yes.

W
Wexter, 2019-03-29
@Wexter

HSTS

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question