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