妈了个蛋,不知道哪里限制了1兆。php探针正常,都开到1000兆了。
超时设置正常,就是不能传1兆以上的文件。dz和typecho都不行,显示内部错误。只能传1兆一下的。
server
{
listen 80;
listen 443 ssl;
server_name http://www.aaa.com;
ssl_certificate cert/chinabgj.com_cert.pem;
ssl_certificate_key cert/chinabgj.com_cert.key;
index index.html index.htm index.php;
client_max_body_size 100M;
root /var/www/aaa.com/www;
if ($http_user_agent ~* ‘spider|bot’) {
rewrite ^/panyh/(.*)$ /404;
}
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php$1 last;
}
location ~ .*\.php(\/.*)*$
{
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index index.php;
set $path_info "";
set $real_script_name $fastcgi_script_name;
if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {
set $real_script_name $1;
set $path_info $2;
}
include fastcgi_params;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;
fastcgi_param SCRIPT_NAME $real_script_name;
fastcgi_param PATH_INFO $path_info;
fastcgi_buffers 32 256k;
fastcgi_busy_buffers_size 512k;
fastcgi_temp_file_write_size 512k;
fastcgi_connect_timeout 600s;
fastcgi_send_timeout 600s;
fastcgi_read_timeout 600s;
}
}