proxy_pass not passing to dynamic $host

Francis Daly francis at daoine.org
Fri Nov 1 00:38:53 UTC 2013


On Thu, Oct 31, 2013 at 07:55:15PM -0400, nehay2j wrote:

Hi there,

> I need to do proxy_pass to host name passed in url and rewrite url as well.
> Since the host name is difference with each request, I cannot provide an
> upstream for it. Below is the nginx configuration I am using but it doesnt
> do proxy pass and returns 404 error. The hostname resembles ec2...com.

proxy_pass to a dynamic hostname taken from the request url works for me.

What is an example request that you make that does not do what you want?

What is the proxy_pass line that that request sees, when you replace
the $variables with their values?

What do the nginx logs say happened?

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list