Regarding ERROR: XmlParseFailure
Pankaj Kaushik
dev.panky2014 at gmail.com
Sat Aug 9 13:06:52 UTC 2014
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20140809/e8688e8e/attachment.html>
More information about the nginx-devel
mailing list