support http and https on the same port

Maxim Dounin mdounin at
Wed Jul 25 15:14:57 UTC 2018


On Wed, Jul 25, 2018 at 07:46:49AM -0700, Frank Liu wrote:

> Stream servers can now do ssl and non-ssl on the same port:
> Can this be added to http virtual hosts as well?
> If ssl is on a listening port and client doesn't send ClientHello, can
> nginx fallback to use normal http? Maybe introduce a new directive
> "fallback_http on;"?

It is available since nginx 0.1.0, see the 497 error code here:

It might not be a good idea to actually configure things that way 

Maxim Dounin

More information about the nginx mailing list