Welcome! Log In Create A New Profile

Advanced

RE: Invalid character found in the request target on Confluence behind nginx

Dung Tran Tien
December 10, 2018 10:18PM
Hi there,

Thanks for your feedback, below is location block.

location /confluence {

proxy_set_header X-Forwarded-Host $host;

proxy_set_header X-Forwarded-Server $host;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_pass http://1.1.2.1:8090/confluence;

proxy_read_timeout 200;

}

Here is access log record on nginx

14.161.32.199 - - [11/Dec/2018:04:06:51 +0100] "GET /confluence/display/AII/5.+test+%3E+A?src=contextnavpagetreemode HTTP/2.0" 400 2490 "https://jira.a.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"



Honesty, I did not find any useful info from tcpdump related this issue. I tried to enable Tomcat http access log on Confluence, but not found this request above.




Your sincerely,
Dung






-----Original Message-----
From: nginx <nginx-bounces@nginx.org> On Behalf Of Francis Daly
Sent: Tuesday, December 11, 2018 6:10 AM
To: nginx@nginx.org
Subject: Re: Invalid character found in the request target on Confluence behind nginx



On Mon, Dec 10, 2018 at 06:43:13AM +0000, Dung Tran Tien wrote:



Hi there,



> Currently I'm using Confluene 6.10.2 behind nginx. I have some pages with the page name including character '>' could not accessible, the error is:



> But when I access the page bypassing the reverse proxy, it's ok, so it could be a problem in nginx.



It sounds like the request from the client includes a correctly-encoded string %3E, while the request from nginx includes the decoded character >.



Can you show the location{} block in nginx that handles this request? Perhaps there is something there that caused the decoding, that can be changed.



Possibly you can use something like "tcpdump" to see the actual requests, if the logs do not show the details.



Good luck with it,



f

--

Francis Daly francis@daoine.org<mailto:francis@daoine.org>

_______________________________________________

nginx mailing list

nginx@nginx.org<mailto:nginx@nginx.org>

http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Invalid character found in the request target on Confluence behind nginx

Dung Tran Tien December 10, 2018 01:44AM

Re: Invalid character found in the request target on Confluence behind nginx

Francis Daly December 10, 2018 06:12PM

RE: Invalid character found in the request target on Confluence behind nginx

Dung Tran Tien December 10, 2018 10:18PM

Re: Invalid character found in the request target on Confluence behind nginx

Francis Daly December 11, 2018 03:36AM

RE: Invalid character found in the request target on Confluence behind nginx

Dung Tran Tien December 11, 2018 03:40AM

Re: Invalid character found in the request target on Confluence behind nginx

Francis Daly December 11, 2018 03:44AM

RE: Invalid character found in the request target on Confluence behind nginx

Dung Tran Tien December 11, 2018 03:56AM

Re: Invalid character found in the request target on Confluence behind nginx

Francis Daly December 11, 2018 04:00AM

RE: Invalid character found in the request target on Confluence behind nginx

Dung Tran Tien December 11, 2018 06:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 168
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready