Welcome! Log In Create A New Profile

Advanced

Re: Ngnix as Proxy with Multiple Directories Issue

August 19, 2011 10:58AM
On Fri, Aug 19, 2011 at 10:51:10AM -0400, ckozler wrote:
> I am not sure what the redirect code would be exactly though I can
> probably snoop and view the headers. What I mean is--
>
> I go to my browser and I type
>
> http://licensing
>
> And it works - I use this to generate a license for our products and it
> generates a license and I can download it from the HTML link that is
> generated (http://licensing/downloads/license-file.jar - as an example).
> Now, what if I want to view the directory listing? I type:
>
> http://licensing/downloads
>
> What it does then is it brings me to:
>
> http://licensing/licensing.fixflyer.com/downloads
>
> Or if I use the FQDN and the similar work flow with
> licensing.fixflyer.com it does the following
>
> http://licensing.fixflyer.com/licensing.fixflyer.com/downloads

May be
http://licensing.fixflyer.com/licensing.fixflyer.com/downloads/
note the trailing "/".

Try add these

proxy_redirect http://licensing.fixflyer.com/licensing.fixflyer.com/ /;
proxy_redirect http://licensing/licensing.fixflyer.com/ /;

By default nginx detects only this redirect:
proxy_redirect http://web.ny1.prod.fixflyer.com/licensing.fixflyer.com/ /;


--
Igor Sysoev

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

Ngnix as Proxy with Multiple Directories Issue

ckozler August 19, 2011 10:24AM

Re: Ngnix as Proxy with Multiple Directories Issue

Igor Sysoev August 19, 2011 10:44AM

Re: Ngnix as Proxy with Multiple Directories Issue

ckozler August 19, 2011 10:51AM

Re: Ngnix as Proxy with Multiple Directories Issue

ckozler August 19, 2011 10:52AM

Re: Ngnix as Proxy with Multiple Directories Issue

Igor Sysoev August 19, 2011 10:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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