<!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> </DIV>
<DIV style="TEXT-INDENT: 2em"><SPAN
class=keyword>1. nginx.conf:</SPAN></DIV>
<DIV style="TEXT-INDENT: 2em"><SPAN class=keyword>
<DIV>worker_processes 1;
</DIV>
<DIV>daemon off;</DIV>
<DIV>master_process off;</DIV>
<DIV></DIV>
<DIV>error_log logs/debug.log debug;</DIV>
<DIV></DIV>
<DIV>events {</DIV>
<DIV> worker_connections 1024;</DIV>
<DIV>}</DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>http {</DIV>
<DIV> include mime.types;</DIV>
<DIV> default_type application/octet-stream;</DIV>
<DIV> sendfile on;</DIV>
<DIV></DIV>
<DIV> keepalive_timeout 65;</DIV>
<DIV></DIV>
<DIV></DIV>
<DIV> upstream backend {</DIV>
<DIV> server 10.10.151.118:80;
# client addr == 10.10.151.123 and nginx server addr == 10.10.151.99</DIV>
<DIV> }</DIV>
<DIV></DIV>
<DIV> server {</DIV>
<DIV> listen 808;</DIV>
<DIV> server_name www.domain.com;</DIV>
<DIV></DIV>
<DIV> location / {</DIV>
<DIV> proxy_pass http://backend;</DIV>
<DIV> }</DIV>
<DIV> error_page 500 502 503 504 /50x.html;</DIV>
<DIV> location = /50x.html {</DIV>
<DIV> root html;</DIV>
<DIV> }</DIV>
<DIV></DIV>
<DIV> location ~ \.php$ {</DIV>
<DIV> proxy_pass http://127.0.0.1;</DIV>
<DIV> }</DIV>
<DIV></DIV>
<DIV> }</DIV>
<DIV>}</DIV></SPAN></DIV>
<DIV style="TEXT-INDENT: 2em"><FONT face=Verdana size=2></FONT> </DIV>
<DIV style="TEXT-INDENT: 2em">2. error.log
<DIV>15521#0: *4 client closed prematurely connection, so upstream connection is closed too (104: Connection reset by peer) while sending request to upstream</DIV>
<DIV>, client: 10.10.151.123, server: localhost, request: "POST /perform.jsp?act=lgn HTTP/1.1", upstream: "http://10.10.151.118:80/perform.jsp?act=lgn", host: "10.10.151.99:808",</DIV>
<DIV>referrer: <A
href="http://10.10.151.99:808/">http://10.10.151.99:808/</A></DIV>
<DIV> </DIV>
<DIV>3. access.log </DIV>
<DIV> </DIV>
<DIV>
<DIV>10.10.151.123 - - [12/Nov/2009:10:23:46 +0800] "POST /perform.jsp?act=lgn HTTP/1.1" 500 2903 "http://10.10.151.99:808/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.1.5</DIV>
<DIV>) Gecko/20091102 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>