Development environment:
the development environment built by CentOs/nginx/php-fpm. The front and rear ends of the project are completely separated. When the front frame requests the interface with Vue, it occasionally prompts Provisional headers are shown (net::ERR_CONNECTION_RESET)
< H2 > error prompt < / H2 > the following is chrome"s network panel prompt
nginx
nginxaccess_log error_log
error_log
nginxrewriterewrite99%
access_log
compared with access_log and error_log, it is found that other API requests are normal. First of all, the notice prompt of error_log
"^/(.*)$" matches "/index/..."
rewritten data: "/index.php/...
match to the rewrite instruction, then request the rewrite to the real url, and find the access log of the corresponding time and ip in the access_log at the same time. But when a problem occurs, nginx"s access_log finds a record of 400, and error_log prompts
client prematurely closed connection, client: 113.65.13.17
when this error occurs, access_log does not see the request record of the rewrite in the url while the url is in the url.
< H2 > problem exploration < / H2 >this problem has occurred for more than half a month, but the real cause has not been found out. Baidu nginx configuration in the header head size problem, set, or this problem. It should be possible to rule out
caused by excessive header. client_header_buffer_size 64k;
large_client_header_buffers 4 128k;
< H2 > solve < / H2 >
brothers and buddies, please give me a lot of advice! Thank you in advance ~