<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.6000.16705" name=GENERATOR><LINK 
href="BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em}" 
rel=stylesheet></HEAD>
<BODY style="FONT-SIZE: 10pt; MARGIN: 10px; FONT-FAMILY: verdana">
<DIV><FONT face=Verdana size=2>Hello:</FONT></DIV>
<DIV style="TEXT-INDENT: 2em">I want to write a module to redirect a 
request&nbsp;to a specific server&nbsp;by&nbsp;uri. when&nbsp;received a 
request,&nbsp;I need to&nbsp;calculate&nbsp;the secific server's 
ip&nbsp;with&nbsp;the number in&nbsp;the uri.</DIV>
<DIV style="TEXT-INDENT: 2em">I have tried the function of 
ngx_http_internal_redirect(), but it seems useless&nbsp;to redirect a request to 
another server.&nbsp;Is there any function can do this?&nbsp;</DIV>
<DIV style="TEXT-INDENT: 2em">My purpose is&nbsp;similar&nbsp;to&nbsp;the 
rewrite module with&nbsp; the directive of&nbsp;"permanent "&nbsp;, but I can't 
quite understand the rewrite module,&nbsp;especially the function of 
ngx_http_rewrite_handler(). Can&nbsp;I just&nbsp;modify the&nbsp;some members in 
the&nbsp;struct&nbsp;of ngx_http_request_t?</DIV>
<DIV style="TEXT-INDENT: 2em">&nbsp;</DIV>
<DIV style="TEXT-INDENT: 2em">thank you fo any help.</DIV>
<DIV style="TEXT-INDENT: 2em">&nbsp;</DIV>
<DIV align=left><FONT face=Verdana color=#c0c0c0 size=2>2008-08-31 
</FONT></DIV><FONT face=Verdana size=2>
<HR style="WIDTH: 122px; HEIGHT: 2px" align=left SIZE=2>

<DIV><FONT face=Verdana color=#c0c0c0 size=2><SPAN 
id=_FoxFROMNAME>nbubingo</SPAN> </FONT></DIV></FONT></BODY></HTML>