support http and https on the same port

Frank Liu gfrankliu at gmail.com
Wed Jul 25 16:16:30 UTC 2018


Thanks Maxim!
Is there a way to tell nginx to treat 497 as no error, and continue normal
processing?

On Wed, Jul 25, 2018 at 8:14 AM, Maxim Dounin <mdounin at mdounin.ru> wrote:

> 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/
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20180725/149af52d/attachment.html>


More information about the nginx mailing list