阅读:5171回复:11
[求助]打开特定网页出现空白页
OS:Windows 2003 R2 x86
FF 19.0.2 打开 http://wiki.openwrt.org/doc/devel/packages 出现空白页(查看源代码也是什么都没有),用IE 8打开也是空白页,但是用opera 12.02打开却是正常的 我在另一台电脑 Win 7 32位,IE9上打开也是正常的 |
|
1楼#
发布于:2013-04-02 16:18
21.0 打开一切正常。
|
|
|
2楼#
发布于:2013-04-02 16:18
19.0.2正常
ctrl+shift+k开web console 然后看看log正常不 也有可能是isp的推送广告或者过滤什么的 我记得之前也有类似情况 opera的ua和fx、ie差别蛮大的 可以试试看opera站点首选项伪装为fx或者ie然后看这个页面正常不 |
|
|
3楼#
发布于:2013-04-02 16:18
是啊,我还以为是这家网站坏了。
我这儿用 IE也不行, chrome却可以 Fx + 代理也不行 换UA也不行,总是500 |
|
4楼#
发布于:2013-04-02 16:18
|
|
5楼#
发布于:2013-04-02 16:18
Firefox伪装成Opera也不行。大概服务器设置有问题。就是500
|
|
6楼#
发布于:2013-04-02 16:18
验证了一把。坏在 Accept-Language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3
Chrome 是 Accept-Language:zh-CN,zh;q=0.8 我就上 about:config 改了下 intl.accept_languages 原来是 zh-cn, zh, en-us, en 改成 zh-CN, zh, en-us, en 然后就好使了。。。 猜测大概跟wiki.openwrt.org 的nginx配置有关系 http://wiki.nginx.org/AcceptLanguageModule 他可能配置的是 zh-CN |
|
7楼#
发布于:2013-04-02 16:18
我的意思是先打开web console
然后访问网站 web console中会记录每一条网络请求和服务器响应的http头 用来查错很方便 用curl可以确认就是楼上说的zh-cn/zh-CN问题 >curl http://wiki.openwrt.org/doc/devel/packages -I -H "Accept-Language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3" HTTP/1.1 500 Internal Server Error Server: nginx/1.1.19 Date: Tue, 02 Apr 2013 10:15:22 GMT Content-Type: text/html Connection: keep-alive X-Powered-By: PHP/5.3.10-1ubuntu3.6 Expires: Thu, 19 Nov 1981 08:52:00 GMT >curl http://wiki.openwrt.org/doc/devel/packages -I -H "Accept-Language: zh-CN,zh;q=0.8,en-us;q=0.5,en;q=0.3" HTTP/1.1 200 OK Server: nginx/1.1.19 Date: Tue, 02 Apr 2013 10:15:40 GMT Content-Type: text/html; charset=utf-8 Connection: keep-alive X-Powered-By: PHP/5.3.10-1ubuntu3.6 Expires: Thu, 19 Nov 1981 08:52:00 GMT 我的fx语言只设了英文 Accept-Language: en-us,en;q=0.5 而且我还过滤掉了所有通过privoxy的请求的accept-language头 难怪之前我分别试了firefox 19.0.2直连和通过privoxy都没问题…… |
|
|
8楼#
发布于:2013-04-02 16:18
xoferiF:验证了一把。坏在 Accept-Language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3 记得之前fang5566斑竹好像提到过这个zh-CN/cn的问题来着?结论好像是fx的写法不够标准……? |
|
|
9楼#
发布于:2013-04-02 16:18
19.0一片空白。
IE6 500内部服务器错误。 |
|
10楼#
发布于:2013-04-02 16:18
我刚又尝试了一下以前一直打不开(403错误)的http://wiki.strongswan.org
发现只要把intl.accept_languages改成en-us, en就可以访问了... 而在windows 7的IE 9上就可以直接访问... |
|
11楼#
发布于:2013-04-02 16:18
是谁的问题呢。zh-tw也是小写却没问题。返回500与200。
curl http://wiki.openwrt.org/doc/devel/packages -I -H "Accept-Language: zh-cn" curl http://wiki.openwrt.org/doc/devel/packages -I -H "Accept-Language: zh-tw" 标准好像是不区分大小写吧(或者我理解错了?);是nginx实现还是网站配置的问题? http://www.w3.org/International/articles/language-tags/ 这个说区分,但通常“惯例”小写 Although the codes are case insensitive, they are commonly written lowercased, but this is merely a convention. http://en.wikipedia.org/wiki/IETF_language_tag 这个说区分,语言的地区部分应该全大写 Subtags are not case sensitive, but the specification recommends using the same case as in the Language Subtag Registry, where region subtags are uppercase, script subtags are titlecase and all other subtags are lowercase. This capitalization follows the recommendations of the underlying ISO standards. http://www.rfc-editor.org/rfc/bcp/bcp47.txt 中搜索 sensitive,好像都说应该大小写不敏感 https://narro.mozest.com/narro_context_ ... 1&o=-1&a=0 |
|