NGINX - {“status”:400,“message”:“Bad request”} Every alternate request getting 400

2020-03-14 Thread satscreate
I Have below nginx config and the api hit works fine every first time and alternate hit getting 400. nginx.conf: http { lua_package_path '~/lua/?.lua;;'; # Allow larger than normal headers large_client_header_buffers 4 64k; ssl_session_cache shared:SSL:10m; ssl_session_timeout 10m;

Re: How to establish secure connection between NGINX <-> https upstream API

2020-03-14 Thread satscreate
Thanks Buddy, It helps, I set up a proper CA cert in pem format and it does make connections. Thanks a lot. -- Sent from: http://nginx.2469901.n2.nabble.com/ ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: upstream SSL certificate does not match "dev_server" while SSL handshaking to upstream

2020-03-13 Thread satscreate
Any Update on this issue? -- Sent from: http://nginx.2469901.n2.nabble.com/ ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

upstream SSL certificate does not match "dev_server" while SSL handshaking to upstream

2020-03-13 Thread satscreate
Hi Team, Am trying to establish encrypted communication between NGINX <-> API's (POST, GET) with below configuration. But am facing some ssl handshake issue. *Config:* upstream dev_server { zone dev_server 64k; server dev1.sysmac.com:443; server dev2.sysmac.com:443; server

How to establish secure connection between NGINX <-> https upstream API

2020-03-12 Thread satscreate
Using below config, According to this, https://docs.nginx.com/nginx/admin-guide/security-controls/securing-http-traffic-upstream/# server { listen 80; server_name nginx_server_name; #... upstream dev { zone dev 64k; server backend.example.com:443; } locati