Nginx dynamic proxy_pass keeps redirecting to wrong domain
Ruben
rdocter at gmail.com
Fri Nov 17 13:16:41 UTC 2017
The logs of instance-001 show that a GET request is made at instance-001
and that it is a 301 redirect.
instance-001 log when making the request:
"GET /cdn/test/test.jpg HTTP/1.0" 301 185 "-" "Mozilla/5.0 (Windows NT
10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/62.0.3202.94 Safari/537.36"
2017-11-17 8:53 GMT+01:00 Francis Daly <francis at daoine.org>:
> On Fri, Nov 17, 2017 at 04:48:04AM +0100, Ruben D wrote:
>
> Hi there,
>
> > In my browser bar I see the address beginning with instance-001. While I
> expect not to have a redirect and just see http://example.com/etc...
>
> That means that when your browser asks nginx for http://example.com/etc,
> nginx sends it back a HTTP redirect to http://instance-001/etc.
>
> My question is: is it the instance-001 web server that sends that redirect
> to nginx before nginx sends it to your browser? The instance-001 web
> server logs should show what it does.
>
> Set up a quiet system.
>
> Make one http request.
>
> Report what the logs say.
>
> f
> --
> Francis Daly francis at daoine.org
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20171117/584a1c92/attachment.html>
More information about the nginx
mailing list