your mail
Francis Daly
francis at daoine.org
Tue Feb 27 08:19:10 UTC 2018
On Tue, Feb 27, 2018 at 12:29:54PM +0530, Pritam Chavan wrote:
Hi there,
> I have checked my backend system It is working fine. If I hit same url
> without nginx reverse proxy its giving proper output.
> Example: For following configuration
>
> location /bsg/ltp/live/$arg_name/$arg_name {
> proxy_pass http://localhost:8041;
> }
For info, you are almost certainly not actually using that location{} block.
$variables are not expanded in "location" directives.
It may well be that your :8041 backend is working fine; but the error
message you showed was about your :8042 backend; and as far as nginx
was concerned:
upstream sent invalid chunked response
> If I hit above url without nginx reverse proxy then its giving proper
> output.
How do you know?
Can you use something like "tcpdump" to show the traffic from the backend
when nginx reports a problem, and when things work correctly?
Perhaps that will show what the difference is.
In the logs you provided, the request was "GET /bsg/scrips"; does nginx
always report a problem when you make that request?
Good luck with it,
f
--
Francis Daly francis at daoine.org
More information about the nginx
mailing list