Welcome! Log In Create A New Profile

Advanced

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

Anonymous User
October 19, 2018 04:34AM
> > 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 request arguments, and the original request URI
> will be sent in the X-Original-URI header.

Thanks a lot, this looks promising. I will give it a try
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Encoding URL before passing it on to reverse proxied application

Anonymous User October 18, 2018 10:20AM

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

Maxim Dounin October 18, 2018 10:38AM

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

Anonymous User October 19, 2018 04:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 180
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