Client send to nginx proxy with URI "/confluence/rest/applinks/1.0/applicationlinkForm/url/http://127.0.0.1:8080/jira.json?_=1315386721160".

But nginx send to real server with incorrect URI "/confluence/rest/applinks/1.0/applicationlinkForm/url/http:/127.0.0.1:8080/jira.json?_=1315386721160".

String "http://127.0.0.1:8080/" is truncated to "http:/127.0.0.1:8080/".

nginx.conf
location /confluence {
 proxy_set_header Host $host;
 proxy_pass http://127.0.0.1:8090/confluence;
 proxy_redirect http://127.0.0.1:8090/confluence/ /confluence/;
}
