Welcome! Log In Create A New Profile

Advanced

Re: proxy_pass not passing to dynamic $host

Francis Daly
October 31, 2013 08:40PM
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@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: 43
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