Thanks for your suggestion. <br><br><br><div class="gmail_quote">2009/4/3 Yu.Cheung <span dir="ltr">&lt;<a href="mailto:nkcheungyu@gmail.com">nkcheungyu@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I think you can write an upstream module to resolve it.<br>
<br>
use the HEAD you get, to make a request, send the new request to the<br>
upstream you want to sent, get the response, check it,<br>
<br>
and then you can use ngx_http_internal_redirect() function to redirect<br>
the origin request to another upstream you defined.<br>
<br>
just do it, good luck!<br>
<br>
<br>
<br>
2009/3/25 Delta Yeh &lt;<a href="mailto:delta.yeh@gmail.com">delta.yeh@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Hi all,<br>
&gt;   I want to implement the following feature:<br>
&gt;  1. client HEAD request arrive , my module send it to an upstream.<br>
&gt;  2. the upstream return response.<br>
&gt;  3. my module check the response, if it is not the data I want, send the<br>
&gt; origin request to another upstream<br>
&gt;<br>
&gt;  I know the block mode will work. I want to know if there is asynchronous<br>
&gt; mode which will fit into nginx better?<br>
&gt;<br>
&gt; BR,<br>
&gt; DeltaY<br>
&gt;<br>
<br>
</div></div></blockquote></div><br>