Hi, Also when i checked the error log, the client request is not going to any upstream server. Instead it is routing to some default location.
2014/08/09 06:31:55 [info] 32681#0: *2 client 14.102.112.84 closed keepalive connection 2014/08/09 06:36:13 [notice] 329#0: signal process started 2014/08/09 06:36:13 [notice] 32669#0: signal 1 (SIGHUP) received, reconfiguring 2014/08/09 06:36:13 [notice] 32669#0: reconfiguring 2014/08/09 06:36:13 [notice] 32669#0: using the "epoll" event method 2014/08/09 06:36:13 [notice] 32669#0: start worker processes 2014/08/09 06:36:13 [notice] 32669#0: start worker process 330 2014/08/09 06:36:14 [notice] 32681#0: gracefully shutting down 2014/08/09 06:36:14 [notice] 32681#0: exiting 2014/08/09 06:36:14 [notice] 32681#0: exit 2014/08/09 06:36:14 [notice] 32669#0: signal 17 (SIGCHLD) received 2014/08/09 06:36:14 [notice] 32669#0: worker process 32681 exited with code 0 2014/08/09 06:36:14 [notice] 32669#0: signal 29 (SIGIO) received 2014/08/09 06:36:19 [error] 330#0: *3 "/etc/nginx/html/index.html" is not found (2: No such file or directory), client: 14.102.112.84, server: , request: "GET / HTTP/1.1", host: "65.60.72.19:90" 2014/08/09 06:36:19 [info] 330#0: *3 client 14.102.112.84 closed keepalive connection Why it is happening? Thanks, Panky On Sat, Aug 9, 2014 at 6:36 PM, Pankaj Kaushik <dev.panky2...@gmail.com> wrote: > Hi, > > When my uri contains "/", then i do not receive any error. > > But when my uri contains "/abc/" then i receive xml parsing error. > > Can any body please let me know what is the issue and why i am getting > this error. > > Below is my nginx.conf. > > map $uri $key2 { > ~^(?<key>/[^/]+)/ $key; > default ""; > } > > > upstream backend { > hash $key2 consistent; > server 10.0.0.22:8080; > server 10.0.0.23:8080; > server 10.0.0.24:8080; > server 10.0.0.25:8080; > server 10.0.0.26:8080; > } > upstream backend_2 { > server 10.0.0.22:8080; > server 10.0.0.23:8080; > server 10.0.0.24:8080; > server 10.0.0.25:8080; > server 10.0.0.26:8080; > } > > server { > listen 90 default_server; > > location = / { > proxy_pass http://backend_2; > } > location $uri { > proxy_pass http://backend; > } > > } > > Thanks, > Panky >
_______________________________________________ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel