Welcome! Log In Create A New Profile

Advanced

Re: nginx reverse proxy proxy_pass weirdness

Francis Daly
December 19, 2019 07:08AM
On Wed, Dec 18, 2019 at 12:35:22PM -0500, deeztek wrote:

Hi there,

> server {
> listen 80 default_server;
> return 444;
> }
>
> Should take care of it?

Yes. (So long as every explicit-or-implicit "listen" directive is
equivalent to "listen 80", which it probably is.)

> How would I got about doing a default SSL config since it would complain
> about the certificate?

Same thing, essentially. What response do you want, for the request?

http://nginx.org/en/docs/http/configuring_https_servers.html

A connection comes to an ip:port.

The TLS handshake from the client includes a SNI name that you have
configured a listener to handle, so your nginx sends the appropriate
certificate; or the handshake does not (because it sends no SNI name, or
it sends a SNI name that you have not configured a listener to handle),
so your nginx sends the certificate associated with the default_server
for that ip:port.

If the client agrees the handshake and sends the request, your nginx
responds the way you configured it to; if the client does not agree the
handshake, they go away without sending the request.

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx reverse proxy proxy_pass weirdness

deeztek December 18, 2019 04:48AM

Re: nginx reverse proxy proxy_pass weirdness

Francis Daly December 18, 2019 05:40AM

Re: nginx reverse proxy proxy_pass weirdness

deeztek December 18, 2019 07:18AM

Re: nginx reverse proxy proxy_pass weirdness

Francis Daly December 18, 2019 07:54AM

Re: nginx reverse proxy proxy_pass weirdness

deeztek December 18, 2019 10:33AM

Re: nginx reverse proxy proxy_pass weirdness

Francis Daly December 18, 2019 11:30AM

Re: nginx reverse proxy proxy_pass weirdness

deeztek December 18, 2019 12:35PM

Re: nginx reverse proxy proxy_pass weirdness

Francis Daly December 19, 2019 07:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 315
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