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

2018-12-11 Thread Dung Tran Tien
Hi there, It's work as your suggestion. Thanks you for your help. I just confuse that why those page with invalid character worked in the past with my old nginx config. That's strange. Regards, Dung. -Original Message- From: nginx On Behalf Of Francis Daly Sent: Tuesday, December 11, 2018

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

2018-12-11 Thread Francis Daly
On Tue, Dec 11, 2018 at 08:54:23AM +, Dung Tran Tien wrote: Hi there, > Not sure I understand you correctly. If change as suggest like > > location /confluence { > > proxy_pass http://1.1.2.1:8090/; Ah, there's the problem. That's not what I suggested. You have one "/" in your c

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

2018-12-11 Thread Dung Tran Tien
Hi there, Not sure I understand you correctly. If change as suggest like location /confluence { proxy_pass http://1.1.2.1:8090/; The request from the client is for /confluence/something. The request from nginx to backend is for /something, it's not correct. Besides that, my current

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

2018-12-11 Thread Francis Daly
On Tue, Dec 11, 2018 at 08:39:32AM +, Dung Tran Tien wrote: Hi there, > The backend must have context /confluence, without it, the page cannot be > load with 404 code. Yes. The request from the client is for /confluence/something. The request from nginx is for /confluence/something.

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

2018-12-11 Thread Dung Tran Tien
Hi, The backend must have context /confluence, without it, the page cannot be load with 404 code. -Original Message- From: nginx On Behalf Of Francis Daly Sent: Tuesday, December 11, 2018 3:35 PM To: nginx@nginx.org Subject: Re: Invalid character found in the request target on Confluenc

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

2018-12-11 Thread Francis Daly
On Tue, Dec 11, 2018 at 03:15:52AM +, Dung Tran Tien wrote: Hi there, In this case, I think that there is a straightforward change that can work: >location /confluence { > proxy_pass http://1.1.2.1:8090/confluence; Change that line to just be proxy_pass http://1.1.2.1:8090;