Welcome! Log In Create A New Profile

Advanced

Re: Internal application - Publish on nginx

Francis Daly
December 03, 2021 11:02AM
On Fri, Dec 03, 2021 at 10:05:57AM -0500, agomes wrote:

Hi there,

> in my location /app I have this configuration.
>
> location /app {
> proxy_pass https://resetpass/pwm/public/forgottenpasswordapp;
> #rewrite ^/(.*)/pwm/public$ /$1 break;
> proxy_redirect /pwm/public/forgottenpasswordapp /app;
> #proxy_set_header Host $host;
> }
>
> when I run the curl -v command I have this output.
>
> root@ubuntu-server:/home/agomes# curl -v https://x.x.x.x/app

> < Location: https://x.x.x.x/app?stickyRedirectTest=key
> < Set-Cookie: JSESSIONID=D70474FE95784C0A07C659A05D224233; Path=/pwm;
> < Set-Cookie: ID=yiElg4A1ZZXYfaMTaNsCOzLDDq1v6xtYkwqvhuxh; Path=/pwm/;
>
> In the browser bar I have this https://x.x.x.x/app?stickyRedirectTest=key
>
> internally on the application everhthing works very well.

The proxy_redirect has changed the Location: response, which is good.

What does

curl -v https://x.x.x.x/app?stickyRedirectTest=key

return?

Can you see in your browser "developer tools console" what series of
requests and responses are made when things work using the internal
system directly; and how far in that sequence does it get when you go
through nginx?

I suggest trying (in the short term, at least)

proxy_cookie_path ~^/pwm.* /app;

in the same location{} block, and seeing if that makes any useful change
to the response when the browser goes through nginx.

Cheers,

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

Internal application - Publish on nginx

agomes December 03, 2021 07:37AM

Re: Internal application - Publish on nginx

Francis Daly December 03, 2021 08:36AM

Re: Internal application - Publish on nginx

agomes December 03, 2021 09:02AM

Re: Internal application - Publish on nginx

Francis Daly December 03, 2021 09:36AM

Re: Internal application - Publish on nginx

agomes December 03, 2021 10:05AM

Re: Internal application - Publish on nginx

Francis Daly December 03, 2021 11:02AM

Re: Internal application - Publish on nginx

agomes December 03, 2021 11:34AM

Re: Internal application - Publish on nginx

agomes December 03, 2021 12:57PM

Re: Internal application - Publish on nginx

Francis Daly December 04, 2021 03:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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