<div dir="ltr">Hi,<div><br></div><div>When my uri contains "/", then i do not receive any error.</div><div><br></div><div>But when my uri contains "/abc/" then i receive xml parsing error.</div><div><br>
</div><div>Can any body please let me know what is the issue and why i am getting this error.</div><div><br></div><div>Below is my nginx.conf.</div><div><div><br></div><div><div>map $uri $key2 {</div><div> ~^(?<key>/[^/]+)/ $key;</div>
<div> default "";</div><div> }</div></div><div><br></div><div><br></div><div>upstream backend {</div><div> hash $key2 consistent;</div><div> server <a href="http://10.0.0.22:8080">10.0.0.22:8080</a>;</div>
<div> server <a href="http://10.0.0.23:8080">10.0.0.23:8080</a>;</div><div> server <a href="http://10.0.0.24:8080">10.0.0.24:8080</a>;</div><div> server <a href="http://10.0.0.25:8080">10.0.0.25:8080</a>;</div>
<div> server <a href="http://10.0.0.26:8080">10.0.0.26:8080</a>;</div><div> }</div><div> upstream backend_2 {</div><div> server <a href="http://10.0.0.22:8080">10.0.0.22:8080</a>;</div>
<div> server <a href="http://10.0.0.23:8080">10.0.0.23:8080</a>;</div><div> server <a href="http://10.0.0.24:8080">10.0.0.24:8080</a>;</div><div> server <a href="http://10.0.0.25:8080">10.0.0.25:8080</a>;</div>
<div> server <a href="http://10.0.0.26:8080">10.0.0.26:8080</a>;</div><div> }</div><div><br></div><div> server {</div><div> listen 90 default_server;</div><div><br></div><div>
location = / {</div><div> proxy_pass <a href="http://backend_2">http://backend_2</a>;</div><div> }</div><div> location $uri {</div><div> proxy_pass <a href="http://backend">http://backend</a>;</div>
<div> }</div><div><br></div><div> }</div></div><div><br></div><div>Thanks,</div><div>Panky</div></div>