Welcome! Log In Create A New Profile

Advanced

Re: two identical keycloak servers + nginx as reverse proxy

Francis Daly
November 26, 2019 04:34AM
On Mon, Nov 25, 2019 at 12:24:18PM +0200, Gregory Edigarov wrote:

Hi there,

>         location / {
>             proxy_pass          http://signin;
>             proxy_redirect      off;
>             proxy_set_header    Host               $host;

> every request to https://signin.my.domain  results in error 500, and in logs
> i see:
>
> rewrite or internal redirection cycle while internally redirecting to
> "////////////",

I think that the config snippet that you show does not lead to the error
log that you show.

Is there some other config in place?

If you add the line

return 200 "Inside location /, request $uri\n";

before the proxy_pass, and make the same request, what response do you get?

> i know exactly that keycloak part work , i could go to keycloak.my.domain in
> my browser no problem.

You report that you can go to keycloak.my.domain in your browser and
things work.

Your config asks nginx to go to http://172.19.24.13:8080 using the hostname
signin.my.domain.

That is not the same as keycloak.my.domain. Possibly that difference is
a reason for things not working?

Cheers,

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

two identical keycloak servers + nginx as reverse proxy

Gregory Edigarov November 25, 2019 05:26AM

Re: two identical keycloak servers + nginx as reverse proxy

Francis Daly November 26, 2019 04:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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