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: nginx and php settings

2020-03-14 Thread Mahmood Naderan
>fastcgi_param SCRIPT_FILENAME /usr/local/nginx/html/$fastcgi_script_name; Done. >1) Does the fastcgi process (probably user www-data) have permission to >read your phpinfo.php file? I see this root@fr13:/usr/local# ls -lh nginx/ total 36K drwx-- 2 nobody root 4.0K مارس 13 16:53 client_bod

Re: nginx and php settings

2020-03-14 Thread Ian Hobson
Hi Mamood, On 14/03/2020 08:09, Mahmood Naderan wrote: Hi, I have install nginx 1.0.15 and php 5.3 on a VM running Ubuntu 14.04. The configuration file looks like below $ cat /usr/local/nginx/conf/nginx.conf #user  nobody; worker_processes  1; #error_log  logs/error.log; #error_log  logs/error.

nginx and php settings

2020-03-14 Thread Mahmood Naderan
Hi, I have install nginx 1.0.15 and php 5.3 on a VM running Ubuntu 14.04. The configuration file looks like below $ cat /usr/local/nginx/conf/nginx.conf #user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid