Ngnix as Proxy with Multiple Directories Issue

Igor Sysoev igor at
Fri Aug 19 14:42:47 UTC 2011

On Fri, Aug 19, 2011 at 10:24:48AM -0400, ckozler wrote:
> Hi Everyone,
> I am having an odd issue here with Ngnix as a my proxy for my pages
> served up by Apache.  This is a pretty vanilla proxy setup - the issues
> I am facing (and my respective config) are as follows:
> I have my DNS and everything setup properly so I know that is not an
> issue.  All requests to and licensing are sent to
> the Ngnix web proxy and I can confirm that it is not in fact any DNS
> issue.  With that - 
> The issue:
> Whenever I type licensing/downloads or
> it redirects me to http://licensing/ and
> (respectively depending on which request was made) - the same goes for
> the downloads domain as well.
> I am thinking I need to add a location block for every directory that I
> want to proxy for but that seems a little wrong - shouldnt any request
> to regardless of the directory path be
> automatically resolved and not auto-appended as such?

It's not clear what do you expect from this setup.
When you said about "redriect", you mean 302 or 301 redirect ?

Igor Sysoev

More information about the nginx mailing list