Aw: Re: Encoding URL before passing it on to reverse proxied application

2018-10-19 Thread Garbage
> > Is one of these approaches possible ? > > You can easily do something like this: > >rewrite ^ /foo? break; >proxy_pass http://localhost:8080; >proxy_set_header X-Original-URI $request_uri; > > This will replace the URI as seen by the upstream server to > "/foo" without any reque

Re: Encoding URL before passing it on to reverse proxied application

2018-10-18 Thread Maxim Dounin
Hello! On Thu, Oct 18, 2018 at 04:18:50PM +0200, garb...@gmx.de wrote: > We are in the process of replacing a rather old web application. The old > application used links that look like this: > > https://nameofapp/do?param1=A&id={ABC-DEF-GHI}¶m2=B > > I know that as far as RFC is concerned { a

Encoding URL before passing it on to reverse proxied application

2018-10-18 Thread Garbage
We are in the process of replacing a rather old web application. The old application used links that look like this: https://nameofapp/do?param1=A&id={ABC-DEF-GHI}¶m2=B I know that as far as RFC is concerned { and } are not valid characters but unfortunately the application was built that way a