No subject

pritam chavan pritamc99 at gmail.com
Mon Feb 26 07:05:15 UTC 2018


Hi All,

I am using open source NGINX as reverse proxy. There are certain URL which
have URL parameters.

I am getting following error while accessing this URL.

2018/02/22 15:11:08 [error] 1606#0: *21 upstream sent invalid chunked
response while reading upstream, client: 10.109.1.4, server:
XXX.XXXXXXXX.com, request: "GET /bsg/scrips HTTP/1.1", upstream: "
http://127.0.0.1:8042/bsg/scrips", host: "XXX.XXXXXXXX.com:8030"

2018/02/22 15:11:47 [error] 1606#0: *24 upstream sent invalid chunked
response while reading upstream, client: 10.109.1.4, server:
XXX.XXXXXXXX.com, request: "GET /bsg/scrips HTTP/1.1", upstream: "
http://127.0.0.1:8042/bsg/scrips", host: "XXX.XXXXXXXX.com:8030"

The nginx.conf for above is

# For more information on configuration, see:

#   * Official English Documentation: http://nginx.org/en/docs/

#   * Official Russian Documentation: http://nginx.org/ru/docs/

user nginx;

worker_processes auto;

error_log /var/log/nginx/error.log;

pid /var/run/nginx.pid;

# Load dynamic modules. See /usr/share/nginx/README.dynamic.

include /usr/share/nginx/modules/*.conf;



events {

    worker_connections  1024;

}

http {

client_body_buffer_size 10M;

server {

                listen       8030;

                 server_name  xxx.xxxxxxxx.com;



                location /bsg/ltp/live {

        proxy_pass http://localhost:8041/bsg/ltp/live;

   }

                location /bsg/ltp/ {

        proxy_pass http://localhost:8041/bsg/ltp/;

   }

                location /bsg/ltp/live/$arg_name {

        proxy_pass http://localhost:8041;

    }

                location /bsg/ltp/live/$arg_name/$arg_name {

        proxy_pass http://localhost:8041;

    }

                location /bsg/ltp/closing {

        proxy_pass http://localhost:8041/bsg/ltp/closing;

    }

                location /bsg/ltp/closing/$arg_name {

        proxy_pass http://localhost:8041;

    }

                location /bsg/ltp/closing/$arg_name/$arg_name {

        proxy_pass http://localhost:8041;

    }

                location /bsg/scrips {

        proxy_pass http://localhost:8042/bsg/scrips;

    }

                location /bsg/scrips/find/isin/$arg_name {

        proxy_pass http://localhost:8042;

    }

                location /bsg/scrips/find/bse-code/$arg_name {

        proxy_pass http://localhost:8042;

    }

                location /bsg/scrips/find/nse-symbol/$arg_name {

        proxy_pass http://localhost:8042;

    }

                location /bsg/scrips/find/group/$arg_name {

        proxy_pass http://localhost:8042;

    }



                location /bsg/ucm/pincode/$arg_name {

        proxy_pass http://localhost:8043;

    }

                location /bsg/ucm/ifscode/$arg_name {

        proxy_pass http://localhost:8043;

    }

                location ucic/customerid {

        proxy_pass http://localhost:8044/ucic/customerid;

    }



}

    log_format  main  '$remote_addr - $remote_user [$time_local] "$request"
'

                      '$status $body_bytes_sent "$http_referer" '

                      '"$http_user_agent" "$http_x_forwarded_for"';



    access_log  /var/log/nginx/access.log  main;

    sendfile            on;

    tcp_nopush          on;

    tcp_nodelay         on;

    keepalive_timeout   65;

    types_hash_max_size 2048;

    Include             /etc/nginx/mime.types;

    default_type        application/octet-stream;



    # Load modular configuration files from the /etc/nginx/conf.d directory.

    # See http://nginx.org/en/docs/ngx_core_module.html#include

    # for more informationi

nclude /etc/nginx/conf.d/*.conf;

}

Thanks & Regards,

Pritam Chavan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20180226/a4ae2756/attachment.html>


More information about the nginx mailing list