Francis Daly
November 01, 2013 01:54AM
On Thu, Oct 31, 2013 at 09:39:54PM -0400, nehay2j wrote:

Hi there,

> I am making a GET call through browser like-
> https://example.com/ec2..com

So "$1" = "/ec2..com" and the proxy_pass argument is http:///ec2..com/test

> Error Logs-
>
> 2013/11/01 01:33:49 [error] 13086#0: *1 no host in upstream
> "/ec2-xx-xxx-xxx-xxx..amazonaws.com:8080/test",
> client: 10.10.4.167, server: clarity-test.cloud.tibco.com, request: "GET
> /ec2-xx-xx-xxx-xx..amazonaws.com HTT
> P/1.1", host: "example.com"

In "http:///ec2..com/test", the host is between the second and third /,
which is blank, hence "no host in upstream".

Change something so that the proxy_pass argument is http://ec2..com/test.

Either use "proxy_pass http:/$1/test", or keep http://$1/test and remove
the / from $1 by putting it outside the ().

Then try again.

And if the error message indicates "resolver", see
http://nginx.org/r/resolver.

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

proxy_pass not passing to dynamic $host

nehay2j October 31, 2013 07:55PM

Re: proxy_pass not passing to dynamic $host

Francis Daly October 31, 2013 08:40PM

Re: proxy_pass not passing to dynamic $host

nehay2j October 31, 2013 09:39PM

Re: proxy_pass not passing to dynamic $host

Francis Daly November 01, 2013 01:54AM

Re: proxy_pass not passing to dynamic $host

nehay2j November 01, 2013 12:29PM

Re: proxy_pass not passing to dynamic $host

Francis Daly November 01, 2013 01:58PM

Re: proxy_pass not passing to dynamic $host

nehay2j November 01, 2013 05:16PM

Re: proxy_pass not passing to dynamic $host

nehay2j November 01, 2013 09:45PM

Re: proxy_pass not passing to dynamic $host

Francis Daly November 02, 2013 05:20AM

Re: proxy_pass not passing to dynamic $host

nehay2j November 02, 2013 10:21AM

Re: proxy_pass not passing to dynamic $host

Francis Daly November 02, 2013 12:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 257
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready