nginx post

wangguowei wangguowei at dhcc.com.cn
Thu Nov 12 05:34:25 MSK 2009


dear sysoev:
Recently, a problem 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...

1. nginx.conf:
worker_processes  1;                                                                    
daemon off;
master_process off;
error_log  logs/debug.log  debug;
events {
    worker_connections  1024;
}
http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;
    upstream backend {
        server 10.10.151.118:80;               # client addr == 10.10.151.123 and nginx server addr == 10.10.151.99
    }
    server {
        listen       808;
        server_name  www.domain.com;
        location / {
            proxy_pass http://backend;
        }
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
        location ~ \.php$ {
            proxy_pass   http://127.0.0.1;
        }
    }
}

2. error.log
15521#0: *4 client closed prematurely connection, so upstream connection is closed too (104: Connection reset by peer) while sending request to upstream
, 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",
referrer: http://10.10.151.99:808/

3. access.log 

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
) Gecko/20091102 Firefox/3.5.5"
2009-11-12 



wangguowei 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20091112/1c4284c8/attachment.html>


More information about the nginx mailing list