Welcome! Log In Create A New Profile

Advanced

Re: Query on nginx. conf file regarding redirection.

Francis Daly
October 29, 2020 07:06PM
On Thu, Oct 29, 2020 at 11:42:11PM +0530, Kaushal Shriyan wrote:

Hi there,

> When I hit this URL http://219.11.134.114/test/_plugin/kibana/app/kibana on
> the browser it does not get redirected to
> https://vpc-lab-test-search-7hyay88a9kjuisl.eu-north-1.es.amazonaws.com/;

What does the nginx access log or error log say happened to that request?

Also: what IP address does
vpc-lab-test-search-7hyay88a9kjuisl.eu-north-1.es.amazonaws.com have
right now; and what IP address did it have when nginx was started?


Your test request goes to port 80 on a specific IP address; your nginx
is listening on port 81 on a non-specified IP address -- if the nginx
logs do not show that this nginx got that request, then that's a thing
to fix before the nginx config.

And your proxy_pass is to a hostname that will be resolved once,
at startup; if the remote address changes, your nginx config will not
notice the change.

> Similarly, when I hit this URL
> http://219.11.134.114/prod/_plugin/kibana/app/kibana on the browser it does
> not get redirected to
> https://vpc-lab-prod-search-9aay182kkjoisl.eu-north-1.es.amazonaws.com/

Same questions; same reasons (except this nginx does listen on port 80).

Cheers,

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

Query on nginx. conf file regarding redirection.

kaushalshriyan October 29, 2020 02:14PM

Re: Query on nginx. conf file regarding redirection.

Francis Daly October 29, 2020 07:06PM

Re: Query on nginx. conf file regarding redirection.

kaushalshriyan October 30, 2020 01:16PM

Re: Query on nginx. conf file regarding redirection.

Francis Daly October 30, 2020 07:44PM

Re: Query on nginx. conf file regarding redirection.

kaushalshriyan October 30, 2020 09:20PM

Re: Query on nginx. conf file regarding redirection.

Francis Daly October 31, 2020 06:58PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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