<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.5730.13" 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>dear sysoev:</FONT></DIV>
<DIV style="TEXT-INDENT: 2em">Recently, a problem <SPAN class=keyword>confuseds 
me. When I install nginx-0.6.37 and config the file nginx.conf as follows, a 
problem occur.When I fill in the form, using for log on, and press log on. 
server return the msg -- com.hongshee.ejforum.common.AppException: Illegal 
request. I found the msg in error.log and access.log as follows. pls. give me 
some advice.Thanks...</SPAN></DIV>
<DIV style="TEXT-INDENT: 2em"><SPAN class=keyword></SPAN>&nbsp;</DIV>
<DIV style="TEXT-INDENT: 2em"><SPAN 
class=keyword>1.&nbsp;nginx.conf:</SPAN></DIV>
<DIV style="TEXT-INDENT: 2em"><SPAN class=keyword>
<DIV>worker_processes&nbsp;&nbsp;1;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</DIV>
<DIV>daemon&nbsp;off;</DIV>
<DIV>master_process&nbsp;off;</DIV>
<DIV></DIV>
<DIV>error_log&nbsp;&nbsp;logs/debug.log&nbsp;&nbsp;debug;</DIV>
<DIV></DIV>
<DIV>events&nbsp;{</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;worker_connections&nbsp;&nbsp;1024;</DIV>
<DIV>}</DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>http&nbsp;{</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mime.types;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;default_type&nbsp;&nbsp;application/octet-stream;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;sendfile&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;on;</DIV>
<DIV></DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;keepalive_timeout&nbsp;&nbsp;65;</DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;upstream&nbsp;backend&nbsp;{</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;server&nbsp;10.10.151.118:80;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
# client addr == 10.10.151.123 and nginx server addr == 10.10.151.99</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;}</DIV>
<DIV></DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;server&nbsp;{</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;listen&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;808;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;server_name&nbsp;&nbsp;www.domain.com;</DIV>
<DIV></DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;location&nbsp;/&nbsp;{</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;proxy_pass&nbsp;http://backend;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error_page&nbsp;&nbsp;&nbsp;500&nbsp;502&nbsp;503&nbsp;504&nbsp;&nbsp;/50x.html;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;location&nbsp;=&nbsp;/50x.html&nbsp;{</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;root&nbsp;&nbsp;&nbsp;html;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</DIV>
<DIV></DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;location&nbsp;~&nbsp;\.php$&nbsp;{</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;proxy_pass&nbsp;&nbsp;&nbsp;http://127.0.0.1;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</DIV>
<DIV></DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;}</DIV>
<DIV>}</DIV></SPAN></DIV>
<DIV style="TEXT-INDENT: 2em"><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV style="TEXT-INDENT: 2em">2. error.log
<DIV>15521#0:&nbsp;*4&nbsp;client&nbsp;closed&nbsp;prematurely&nbsp;connection,&nbsp;so&nbsp;upstream&nbsp;connection&nbsp;is&nbsp;closed&nbsp;too&nbsp;(104:&nbsp;Connection&nbsp;reset&nbsp;by&nbsp;peer)&nbsp;while&nbsp;sending&nbsp;request&nbsp;to&nbsp;upstream</DIV>
<DIV>,&nbsp;client:&nbsp;10.10.151.123,&nbsp;server:&nbsp;localhost,&nbsp;request:&nbsp;"POST&nbsp;/perform.jsp?act=lgn&nbsp;HTTP/1.1",&nbsp;upstream:&nbsp;"http://10.10.151.118:80/perform.jsp?act=lgn",&nbsp;host:&nbsp;"10.10.151.99:808",</DIV>
<DIV>referrer:&nbsp;<A 
href="http://10.10.151.99:808/">http://10.10.151.99:808/</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>3. access.log </DIV>
<DIV>&nbsp;</DIV>
<DIV>
<DIV>10.10.151.123&nbsp;-&nbsp;-&nbsp;[12/Nov/2009:10:23:46&nbsp;+0800]&nbsp;"POST&nbsp;/perform.jsp?act=lgn&nbsp;HTTP/1.1"&nbsp;500&nbsp;2903&nbsp;"http://10.10.151.99:808/"&nbsp;"Mozilla/5.0&nbsp;(Windows;&nbsp;U;&nbsp;Windows&nbsp;NT&nbsp;5.1;&nbsp;zh-CN;&nbsp;rv:1.9.1.5</DIV>
<DIV>)&nbsp;Gecko/20091102&nbsp;Firefox/3.5.5"</DIV></DIV></DIV>
<DIV align=left><FONT face=Verdana color=#c0c0c0 size=2>2009-11-12 
</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>wangguowei</SPAN> 
</FONT></DIV></FONT></BODY></HTML>