Answer the question
In order to leave comments, you need to log in
Nginx incorrectly returns large bodies
There is a server - CentOS + nginx + php-fpm. Some of the files are given incorrectly - they are not fully loaded. The size of such files is about 80-90kb uncompressed. Feels like some buffer is overflowing.
server {
listen 80;
server_name example.com;
access_log /dev/null;
error_log /dev/null;
if ( $http_user_agent ~* (nmap|nikto|wikto|sf|sqlmap|bsqlbf|w3af|acunetix|havij|appscan) ) {
return 403;
}
root /home/www/example.com/public_html/;
index index.html index.php;
server_tokens off;
connection_pool_size 256;
client_max_body_size 10m;
client_body_timeout 3600
client_body_buffer_size 1024k;
client_header_buffer_size 8k;
client_body_temp_path /var/ngx_pagespeed_cache;
location / {
try_files $uri $uri/ /index.php;
}
location ~ /.svn/ {
deny all;
}
location ~ \.php$ {
try_files $uri =404;
expires off;
fastcgi_pass unix:/dev/shm/php-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param MAGE_RUN_CODE default;
fastcgi_param MAGE_RUN_TYPE store;
include fastcgi_params;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question