Welcome! Log In Create A New Profile

Advanced

Re: proxy_redirect not working with "refresh"

John
May 01, 2015 02:02AM
-----Original Message-----
>From: Francis Daly <francis@daoine.org>
>Sent: Apr 30, 2015 4:11 AM
>To: nginx@nginx.org
>Subject: Re: proxy_redirect not working with "refresh"
>
>
>Hi there,
>
>That's not a "Refresh" header field.
>
>That is something in the http response body.
>
>In general, nginx doesn't mess with the response body.
>
>(You can configure it to, but I tend to dislike doing that.)
>
>> Did I miss anything? Actually I don't understand that line about "proxy_set_header Host $host", I just copied from web.
>
>Why does your back-end include the string "http://192.168.1.9/" in its
>response body?
>
>Can you make it instead include a string based on the Host: header it
>receives? If so, that is what the "proxy_set_header Host $host" is for.
>
> f
>--

Thank you so much. That saved me from the hours of searching.

Indeed, the documentation said it's about "proxied server response". I should expect every word in nginx documention counts :-)

The backend is an oudated legacy application, don't know why they did that, and I tried but can't figure out how to fix. So I just used the sub_filter to rewrite and it worked. Indeed I still have to "proxy_set_header Host $host" on the proxy to make that work as well.

Sincerely, John

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

proxy_redirect not working with "refresh"

John April 30, 2015 02:44AM

Re: proxy_redirect not working with "refresh"

Francis Daly April 30, 2015 04:12AM

Re: proxy_redirect not working with "refresh"

John May 01, 2015 02:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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