Opened 13 years ago

Closed 13 years ago

#10 closed defect (invalid)

// in URI is truncated to / while proxing to real server

Reported by: Owned by: somebody
Priority: critical Milestone:
Component: nginx-module Version: 1.1.x
Keywords: proxy uri truncated Cc:
uname -a: FreeBSD svn.localhost.localdomain 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 amd64
nginx -V: nginx: nginx version: nginx/1.1.1
nginx: TLS SNI support enabled
nginx: configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I /usr/local/include' --with-ld-opt='-L /usr/local/lib' --conf-path=/usr/local/etc/nginx/nginx.conf --sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/ --error-log-path=/var/log/nginx-error.log --user=www --group=www --with-ipv6 --http-client-body-temp-path=/var/tmp/nginx/client_body_temp --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp --http-proxy-temp-path=/var/tmp/nginx/proxy_temp --http-scgi-temp-path=/var/tmp/nginx/scgi_temp --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp --http-log-path=/var/log/nginx-access.log --with-http_realip_module --with-http_ssl_module --with-http_stub_status_module --with-pcre


Client send to nginx proxy with URI "/confluence/rest/applinks/1.0/applicationlinkForm/url/".

But nginx send to real server with incorrect URI "/confluence/rest/applinks/1.0/applicationlinkForm/url/http:/".

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

location /confluence {

proxy_set_header Host $host;
proxy_redirect /confluence/;


Attachments (1)

report.txt (558 bytes ) - added by 13 years ago.
The error report automatic convert http://xxx to link

Download all attachments as: .zip

Change History (2)

by, 13 years ago

Attachment: report.txt added

The error report automatic convert http://xxx to link

comment:1 by Maxim Dounin, 13 years ago

Resolution: invalid
Status: newclosed

This is expected behaviour. If you want to pass original URI as provided by client, please use proxy_pass without URI component:

location /confluence {

Alternatively, you may use merge_slashes directive, see documentation (in Russian) here:

This may not be safe though and hence not recommended, see documentation for details.

Note: See TracTickets for help on using tickets.