<!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 to a specific server by uri. when received a
request, I need to calculate the secific server's
ip with the number in the uri.</DIV>
<DIV style="TEXT-INDENT: 2em">I have tried the function of
ngx_http_internal_redirect(), but it seems useless to redirect a request to
another server. Is there any function can do this? </DIV>
<DIV style="TEXT-INDENT: 2em">My purpose is similar to the
rewrite module with the directive of "permanent " , but I can't
quite understand the rewrite module, especially the function of
ngx_http_rewrite_handler(). Can I just modify the some members in
the struct of ngx_http_request_t?</DIV>
<DIV style="TEXT-INDENT: 2em"> </DIV>
<DIV style="TEXT-INDENT: 2em">thank you fo any help.</DIV>
<DIV style="TEXT-INDENT: 2em"> </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>