Welcome! Log In Create A New Profile

Advanced

Re: support http and https on the same port

Maxim Dounin
July 25, 2018 11:16AM
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@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

support http and https on the same port

Frank Liu July 25, 2018 10:48AM

Re: support http and https on the same port

Maxim Dounin July 25, 2018 11:16AM

Re: support http and https on the same port

Frank Liu July 25, 2018 12:18PM

Re: support http and https on the same port

Frank Liu July 25, 2018 01:28PM

Re: support http and https on the same port

Frank Liu July 25, 2018 02:40PM

Re: support http and https on the same port

Maxim Dounin July 25, 2018 04:24PM

Re: support http and https on the same port

Frank Liu July 25, 2018 04:36PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 163
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready