<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">I do not see anything in <a href="http://nginx.org/en/docs/http/ngx_http_core_module.html#error_page">error_page</a> documentation stating it would not send anything for 408.<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">I suggest a problem on your side.<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153);display:inline"><br>Do you have HTTP Requests/Responses traces to show?<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153);display:inline">Any sign of trouble (configuration, not applied, wrong location, empty arguments, etc.)?<br></div><div class="gmail_extra"><div><div class="gmail_signature"><font size="1"><span style="color:rgb(102,102,102)">---<br></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font></div></div>
<br><div class="gmail_quote">On Tue, Feb 10, 2015 at 8:35 AM, shmulik <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I'm using nginx as reversed proxy, using the proxy module.<br>
Whenever i get a response code >= 400 from the upstream server, i'm<br>
redirecting the client to a different url.<br>
<br>
This is the configuration i use (simplified):<br>
<br>
        location ~ "^/proxy/host_(.*)/fallback_(.*)" {<br>
<br>
            proxy_pass http://$1;<br>
<br>
            proxy_intercept_errors on;<br>
            error_page 404 408 500 http://$2;<br>
        }<br>
<br>
However, i've noticed that when the upstream server responds with 408<br>
response code, nginx does not send a redirect.<br>
Instead it terminates the connection to the client.<br>
<br>
Is this the intended behavior?<br>
Is there any way around it?<br>
I'd like to be able to intercept 408 responses as well and redirect them.<br>
Any alternative suggestions to implement it are very welcome.<br>
<br>
Thanks in advance,<br>
Shmulikb<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,256530,256530#msg-256530" target="_blank">http://forum.nginx.org/read.php?2,256530,256530#msg-256530</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br></div></div>