400 bad request request header or cookie large nginx
400 bad request request header or cookie large nginx
Alibabacloud.com offers a wide variety of articles about 400 bad request request header or cookie large nginx, easily find your 400 bad request request header or cookie large nginx information here online.
Requirement: The front end of the company needs to pass the token after login to the backstage through the way of cookie. (including the ability to modify cookies).Post the Code:We are through the MUI Ajax request, carefully read the text of the request in the head, found backstage callback a set-cookie. Get saved by D
Assume that only one COOKIE is saved after a website is logged on and is considered as logged on. Then, when I use FIREBUG for a request, I can see that the COOKIE is carried in the request header, but I can't figure out where to put the
1. When a URL is requested from an HTTP server, the browser compares the URL with all Cookies stored on the client host, the line that matches the cookie that contains the name/value pair will be included in the HTTP request header.
The format of the request header line is:
The 1.4.x version of Nginx did not find this problem, but in the 1.5.x version encountered this problemBecause Nginx is in the new version, the standard mime-type:application/javascript is used. In the current version of the code in the Nginx_concat_module module, the type of Application/x-javascript is written.Found in Nginx-http-concat-master, line 14.Static ng
Please indicate the source of the reproduced reproduced http://blog.csdn.net/yankai0219/article/details/8270219
0. Sequence 1.upload module add Head field 2.Nginx for ngx_http_headers_out_t headers_out.headers member variable processing 1) Request: 2 response: 3. To request or add header field 1 to the re
Recent development encountered a failure to upload, look at the log actually shows the POST request entity too large.
Then check the data and modify the configuration of Proxy server Nginx and server tomcat
**1.**nginx
As a reverse proxy server, Nginx received the client
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, tempo
Today in the test colleague in testing the new machine OCR recognition when prompted to upload pictures failed to view Nginx log found the following error:The reason is because the client upload file size exceeds the Nginx limit (default is 1M) The official explanation is as follows:Http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_sizeSyntax: client_max_body_size size;Default: clie
When using the phpMyAdmin import function today, the server prompts an error because the SQL file is too large. The error 413 Request Entity too large and Google prompts nginx error messages. Solution: Open the nginx main configuration file
Development environment: CentOS + Nginx + PHP + MySql + phpmyadmin
In the use of phpMyAdmin SQL database import, often need to upload large SQL data files, and at this time will often encounter Nginx error: 413 Request Entity Too Large.
To solve this problem, depending on
As a result, I used the Http packet capture tool (HttpDetect), as shown in the following figure.The returned status is 413 Request Entity Too Large (nginx/1.2.1), and Baidu finds that this is a problem where nginx sets the packets allowed to be uploaded. This is in line with the above situation, there is no exception i
1. If the PHP Request Parsing service used by nginx is FPM, check the parameters in the/etc/PhP5/FPM/PHP. ini file.Upload_max_filesize = 20mpost_max_size = 20 mRestart FPM ServiceService php5-fpm restartThen upload the file within 20 mb. If the error 413 still persists, the php. ini issue will be ruled out.2. Add the following fields to the/etc/nginx/sites-enable
The error 413 Request Entity Too Large is always prompted when you use phpmyadmin to upload SQL to restore the database.There is no problem with small files, so the problem must occur on the file size. Google: Nginx error prompt.Solution:I. Adjust the php Upload size1. Edit php. iniAdd or modify the following options:Post_max_size = 20 MUpload_max_filesize = 20 M
Nginx appears 413 Request Entity Too Large error, this error generally occurs when uploading a file, open nginx main configuration file nginx.conf, find http{} segment, addThe solution isOpen nginx Main configuration file nginx.conf, generally in/usr/local/
When I use the flash version of WordPress File upload function today, I always prompt an interface error, which is very depressing. There is no problem with changing the size of a small file, so the problem must occur on the file size. After looking for a long time, I found that WordPress has no limit on the size of the file to be uploaded.Switch to the traditional file upload interface and re-upload a large file. The error message is displayed, 413
Nginx appears 413 Request Entity Too Large error, this error generally occurs when uploading a file, open nginx main configuration file nginx.conf, find http{} segment, addThe solution isOpen nginx Main configuration file nginx.conf, generally in/usr/local/
Nginx appears 413 Request Entity Too Large error, this error generally occurs when uploading a file, open nginx main configuration file nginx.conf, find http{} segment, addThe solution isOpen nginx Main configuration file nginx.conf, generally in/usr/local/
Overview
Today encountered a problem, in the PHP program upload picture has the following error: http:413 Request Entity Too Large.
Development environment: CentOS + Nginx + PHP + MySql
Solution
To solve this problem, depending on the size of the uploaded data file, you need to adjust the configuration of PHP and Nginx
One, Nginx serverNginx This problem occurs because the request entity is too long. It is common to have a POST request when the body content post data is too large,such as uploading large files too large, post data more.Processing
First, Nginx server
Nginx This problem occurs because the request entity is too long. The general occurrence of a POST request is that the body content post data is too large,such as uploading large files too
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.