Welcome! Log In Create A New Profile

Advanced

nginx post

November 12, 2009 12:48AM
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
Subject Author Posted

nginx post

hicehero November 12, 2009 12:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 301
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready