Welcome! Log In Create A New Profile

Advanced

Re: Nginx reload intermittenlty fails when protocol specified in proxy_pass directive is specified as HTTPS

Aziz Rozyev
November 20, 2017 01:04PM
Hi,

try

1) curl -ivvv https://<upstream ip_address> to your upstreams.
2) add server <ip_addr>:443 (if your upstreams accepting ssl connections on 443)



br,
Aziz.





> On 20 Nov 2017, at 20:46, shivramg94 <nginx-forum@forum.nginx.org> wrote:
>
> I am trying to use nginx as a reverse proxy with upstream SSL. For this, I
> am using the below directive in the nginx configuration file
>
> proxy_pass https://<upstream_block_file_name>;
>
> where "<upstream_block_file_name>" is another file which has the list of
> upstream servers.
>
> upstream <upstream_block_file_name> {
> server <IP_address_of_upstream_server>:<Port> weight=1;
> keepalive 100;
> }
>
> With this configuration if I try to reload the Nginx configuration, it fails
> intermittently with the below error message
>
> nginx: [emerg] host not found in upstream \"<upstream_block_file_name>\"
>
> However, if I changed the protocol mentioned in the proxy_pass directive
> from https to http, then the reload goes through.
>
> Could anyone please explain what mistake I might be doing here?
>
> Thanks in advance.
>
> Posted at Nginx Forum: https://forum.nginx.org/read.php?2,277415,277415#msg-277415
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx reload intermittenlty fails when protocol specified in proxy_pass directive is specified as HTTPS

shivramg94 November 20, 2017 08:49AM

Re: Nginx reload intermittenlty fails when protocol specified in proxy_pass directive is specified as HTTPS

Aziz Rozyev November 20, 2017 01:04PM

Re: Nginx reload intermittenlty fails when protocol specified in proxy_pass directive is specified as HTTPS

shivramg94 November 20, 2017 01:41PM

Re: Nginx reload intermittenlty fails when protocol specified in proxy_pass directive is specified as HTTPS

Maxim Dounin November 20, 2017 01:50PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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