support http and https on the same port
Maxim Dounin
mdounin at mdounin.ru
Wed Jul 25 15:14:57 UTC 2018
Hello!
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:
> https://www.nginx.com/blog/running-non-ssl-protocols-over-ssl-port-nginx-1-15-2/
>
> 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:
http://nginx.org/en/docs/http/ngx_http_ssl_module.html#errors
It might not be a good idea to actually configure things that way
though.
--
Maxim Dounin
http://mdounin.ru/
More information about the nginx
mailing list