Nginx 499 error problems and Solutions _nginx

Source: Internet
Author: User
Tags imap iptables

Nginx Introduction

Nginx ("Engine X") is a high-performance HTTP and reverse proxy server, as well as a IMAP/POP3/SMTP server. Nginx was developed by Igor Sysoev, the second rambler.ru site for Russian visits, and the first public version of 0.1.0 was released on October 4, 2004. It publishes the source code in the form of a BSD-like license, which is known for its stability, rich feature sets, sample configuration files, and low system resource consumption. June 1, 2011, Nginx 1.0.4 released.

Nginx is a lightweight Web server/reverse proxy server and e-mail (IMAP/POP3) proxy server, and is distributed under a bsd-like protocol. Developed by the Russian program designer Igor Sysoev, it is used by Russia's large portal and search engine Rambler (Russian: Рамблер). Its features are less memory, concurrency is strong, in fact, Nginx's concurrency ability indeed in the same type of Web server performance better, the Chinese mainland Use Nginx website users: Jingdong, Sina, NetEase, Tencent, Taobao and so on.

Nginx Benefits Editor

Nginx can be compiled and run on most Unix like OS and has a Windows portable version. Nginx's 1.4.0 stable version has been released on April 24, 2013, in general, for new sites, the proposed use of the latest stable version as a production version, the upgrade of the existing site is not high. Nginx's source code uses 2-clause bsd-like license.

Nginx is a powerful, high-performance Web and reverse proxy server with many excellent features:

In the case of high connectivity concurrency, Nginx is a good alternative to Apache servers: Nginx is one of the most frequently chosen software platforms for owners of virtual hosting businesses in the United States. Can support the response of up to 50,000 concurrent connections, thanks to Nginx for our choice of Epoll and Kqueue as the development model.

This article has introduced the Nginx 499 error reason and the solution, the concrete content is as follows:

1.499 Online explanation is that the client actively shuts down the connection

In a project upload file, nginx log 499, close iptables can

2. From the method of troubleshooting

Nginx->tomcat, the problem is on these two.
See if Nginx's request is found in the log, this time the POST request is 499
Look at the Tomcat log, is there an exception

3. From the network layer, the application layer, from the bottom to the exclusion

Iptables and networking issues

4. Using Tools

Tcpdump
Tcpdump-xvvennss 0-i eth0 tcp[20:2]=0x4745 or tcp[20:2]=0x4854-w/tmp/post.log
Tcpdump-i eth0 ' (Port 8000) and (tcp[(tcp[12]>>2): 4]=0x47455420)) '-nnal-w/tmp/get.log
0x4745 is a POST request

5. The final discovery is iptables prohibit upload the attachment of the FTP address, add in to OK

There is a problem with the nginx and Tomcat interactions.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.