V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  BOOM  ›  全部回复第 31 页 / 共 41 页
回复总数  813
1 ... 27  28  29  30  31  32  33  34  35  36 ... 41  
❮ ❯
2014 年 7 月 20 日
回复了 BOOM 创建的主题 › NGINX › Gzip 搞死我了。。。
@AstroProfundis
user www www;
worker_processes auto;
error_log /home/wwwroot/index/log/nginx_error.log crit;
pid /usr/local/nginx/logs/nginx.pid;

#Specifies the value for maximum file descriptors that can be opened by this process.
worker_rlimit_nofile 51200;

events
{
use epoll;
worker_connections 51200;
}

http
{
include mime.types;
default_type application/octet-stream;
server_names_hash_bucket_size 128;
client_header_buffer_size 4k;
large_client_header_buffers 4 4k;
client_max_body_size 50m;

sendfile on;
tcp_nopush on;

keepalive_timeout 60 60;

fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
fastcgi_buffer_size 16k;
fastcgi_buffers 16 16k;
fastcgi_busy_buffers_size 16k;
fastcgi_temp_file_write_size 16k;
fastcgi_intercept_errors on;

tcp_nodelay on;
server_tokens off;
gzip on;
gzip_proxied any;
gzip_min_length 1000;
gzip_comp_level 8;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml application/rss+xml application/xhtml+xml application/atom_xml;
gzip_disable "MSIE [1-6].(?!.*SV1)";
log_format access '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for';

include vhost/*.conf;
server
{
listen 23333;
server_name aaa;
index index.html index.htm index.php;
root /home/wwwroot/index/web;
fastcgi_buffer_size 4k;
fastcgi_buffers 8 4k;
fastcgi_busy_buffers_size 4k;
gzip off;

location ~ .*\.php$
{
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}

location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}

location ~ .*\.(js|css)?$
{
expires 12h;
}

access_log /home/wwwroot/index/log/access.log combined;
error_log /home/wwwroot/index/log/error.log crit;
}

server
{
listen 80 default;
return 400;
}
}
2014 年 7 月 20 日
回复了 BOOM 创建的主题 › NGINX › Gzip 搞死我了。。。
@skydiver 刚刚试了,没有用。就是关了gzip再开super cache也会出现330.。。
但是正常开gzip不开super cache就没问题。。
2014 年 7 月 20 日
回复了 BOOM 创建的主题 › NGINX › Gzip 搞死我了。。。
@skydiver 主要是另一个网站也是默认在nginx里面开了gzip,但是再在super cache 里面开压缩也不会出现330啊。
2014 年 7 月 20 日
回复了 BOOM 创建的主题 › NGINX › Gzip 搞死我了。。。
@skydiver 呀。忘记了。。
2014 年 7 月 20 日
回复了 MeowCold 创建的主题 › 云计算 › 搜狐云景 Paas 邀请码三枚
@ovear 求码
@Livid “vpn”这个节点的贴子不上“全部”是不是有些不利于讨论与回复啊。。
2014 年 7 月 20 日
回复了 boogiefer 创建的主题 › VPS › 有人用 directspace,昨天机器被停了
ds正常啊。手里两台都正常。
你是不是大量使用资源什么的了?
好办法是。低于2000不立案。那就再打360给他凑满两千
2014 年 7 月 20 日
回复了 BOOM 创建的主题 › NGINX › Gzip 搞死我了。。。
@ovear 那不对啊。a网站开没开super cache 都显示已经开启gzip。。。
b网站我进nginx里面关了gzip再开启wordpress super cache都依旧显示330。。
2014 年 7 月 20 日
回复了 BOOM 创建的主题 › NGINX › Gzip 搞死我了。。。
@wy315700 nginx里面是开启的。不过貌似没有效果。。。
2014 年 7 月 20 日
回复了 BOOM 创建的主题 › NGINX › Gzip 搞死我了。。。
而且网站还出现这个问题:
Uncaught ReferenceError: jQuery is not defined ?f=wp-content/plugins/table-of-contents-plus/front.js&m=1404617869:1
The value "1;" for key "maximum-scale" was truncated to its numeric prefix. kegao.us/:8
Error parsing a meta element's content: ';' is not a valid key-value pair separator. Please use ',' instead. kegao.us/:8
Uncaught ReferenceError: Begin is not defined (index):15
The 'x-webkit-speech' input field attribute is deprecated. Please use the JavaScript API instead.
2014 年 7 月 20 日
回复了 BOOM 创建的主题 › NGINX › Gzip 搞死我了。。。
@wy315700 用的是Nginx不是apache。
Super Cache里面的已经关了,因为一旦开启整个网站330错误无法访问。
B网站默认开启Gzip,但是貌似没有效果,网站依旧40K多。A网站用了Super Cache后被压缩到了10K不到。
因为B网站和A网站都是基本相同的方式搭建的,所以应该都是可以实现相同的功能的。
但B网站无论如何网站就是40K左右,无法压缩到10K左右。
但是去 chinaz 测试gzip又说已经开启了gzip而且已经被压缩到了10k,去测试发现依旧是40K而不是10K
2014 年 7 月 20 日
回复了 ijophy 创建的主题 › 分享发现 › Acfun.tv 正在转移注册商
慧聪网、威锋网、Acfun、5Sing、wo99... 还有哪些?
1 ... 27  28  29  30  31  32  33  34  35  36 ... 41  
❮ ❯
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4466 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 25ms · UTC 07:42 · PVG 15:42 · LAX 23:42 · JFK 02:42
♥ Do have faith in what you're doing.