"Nginx" Nginx the return of a JSON message when a reverse proxy request responds to a large amount of data in a packet. Block chain

Source: Internet
Author: User

problem: The server uses Nginx to do the reverse proxy, when requesting the service port interface, if the response packet data is large, always returns the JSON message is not complete.

For a long time. The reason is:nginx for small reverse proxy request is to use memory for transit, for slightly larger, is the use of temporary file system to do transit, temporary file directory/usr/local/nginx/proxy_temp.

Then because I previously set in the Nginx.conf user rights is the boss user, do not know who put this line to comment out, the new temporary file owner is nobody, so after I modified into a boss user, will cause no permission to write in these temporary files, such as figure:

Error information as shown in the picture:


Solution: Delete proxy_temp under the file, reload a little nginx on it.

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.