Welcome! Log In Create A New Profile

Advanced

Re: Replace location paramter

Francis Daly
April 13, 2021 08:30AM
On Tue, Apr 13, 2021 at 05:47:07AM -0400, vybralk wrote:

Hi there,

> i have ngnix in front of java web server. My request is correctly send by
> ngnix to java web, which redirect user request to another url as user is not
> authenticated. It set location header to following value
>
> location =
> https://login.server.com/oidc/2/auth?response_type=code&client_id=123&scope=openid+profile+email+params&redirect_uri=https://internal.server.com:8443/ords/apex_authentication.callback&state=123123123123asdfsadfasdf
>
> but the server name isn't correct as it is accessible under different name
> from internet. I need to change it.

Does "proxy_redirect" do what you want?

http://nginx.org/r/proxy_redirect

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Replace location paramter

vybralk April 13, 2021 05:47AM

Re: Replace location paramter

Francis Daly April 13, 2021 08:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 76
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready