随笔分类 - Nginx
摘要:nginx 上传文件遇到的Bug。 fastcgi_buffer_size 128k; fastcgi_buffers 8 128k; fastcgi_busy_buffers_size 128k; fastcgi_temp_file_write_size 128k; 然后就解决了
阅读全文
摘要:公司有个老项目,写了很多年了,是在apache 上面跑的,无意间,我想让它跑到nginx上,结果遇到了PEAR.php的问题,先安装pear基本安富有就是wgethttp://pear.php.net/go-pear.pharphp go-pear.phar我php版本是5.4的,先禁用disabl...
阅读全文
摘要:cookies的值超出了范围我是说看看了一下日志错误502 upstream sent too big header while reading response header from upstreamsudo gedit /var/log/nginx/error.log查看错误日志upstreamsenttoobigheaderwhilereadingresponseheaderfromupstream你去搜这个错误,网上的解释都差不多,无外乎是cookie携带的header太多了,让你设置:fastcgi_buffer_size 128k;fastcgi_buffers 8 128k;逐
阅读全文
摘要:我一个统计程序估计要跑1分多钟以上查看了一个php-fpm 配置文件[13-Oct-2013 12:06:07] WARNING: [pool www] child 7458, script '/home/wwwroot/admin/index.php' (request: "GET /index.php") execution timed out (101.515909 sec), terminating[13-Oct-2013 12:06:07] WARNING: [pool www] child 7458 exited on signal 15 (SI
阅读全文
摘要:1、将多个域名指向同一web目录: server_name www.php100.com php100.com; rewrite ^/$ / redirect; 2、将不带www的域名301转向到带www的域名: server_name www.php100.com php100.com; if ( $host != "www.php100.com" ) { rewrite ^/(.*)$ http://www.php100.com/$1 permanent; } nginx重定向规则详细介绍 rewrite命令 nginx的rewrite相当于apache的rewrite
阅读全文
摘要:server { listen 80; server_name cy.com; index index.html index.htm index.php default.html default.htm default.php; root /home/wwwroot/cy; location / { if (-e $request_filename) { ...
阅读全文