从ucenter中安装SS, 总是失败,会出现”ucenter无法正常连接 返回错误(....”的错误提示。
调试发现原因是返回的服务器头信息超过500个字符造成的,在install/index.php 89行左右,
$ucinfo = sfopen($ucapi.'/index.php?m=app&a=ucinfo&release='.UC_CLIENT_RELEASE, 500, '', '', 1, $ucip);
这里限制了大小为500, 改大为1000或者更大就可以了。
附上虚拟host返回的头部信息, 正好超过500了
HTTP/1.0 302 Moved Temporarily
Date: Sat, 06 Mar 2010 03:16:57 GMT
Server: Apache/2.2.12 (Unix) mod_ssl/2.2.12 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_perl/2.0.4 Perl/v5.8.8
Location: admin.php
Cache-Control: no-store, must-revalidate, max-age=0, proxy-revalidate, no-transform
Expires: Sat, 06 Mar 2010 03:16:57 GMT
Vary: Accept-Encoding
Content-Encoding: gzip
Pragma: no-cache
Content-Length: 20
Content-Type: text/html
X-Cache: MISS from sv5.byethost5.org
Via: 1.1 sv5.byethost5.org:80 (squid/2.7.STABLE7)
Connection: keep-alive |