从Amazon CloudFront获取Pinterest和Twitter图片提取问题
我有一台指向AWS ec2的服务器。 - 域:-hometriangle.com从Amazon CloudFront获取Pinterest和Twitter图片提取问题
,影像都可以从AWS CloudFront的服务与SSL在内部指向EC2:域:-static.hometriangle.com
两个Pinterest的和Twitter不能取图片。 Facebook和Google正在处理它。
Twitter的错误:我的卡验证获得以下日志
> INFO: Page fetched successfully INFO: 22 metatags were found INFO:
> twitter:card = gallery tag found ERROR: Internal Proxy Image Service
> Error (twitter:image0) ERROR: Internal Proxy Image Service Error
> (twitter:image1) ERROR: Internal Proxy Image Service Error
> (twitter:image2) ERROR: Internal Proxy Image Service Error
> (twitter:image3) ERROR: Internal Proxy Image Service Error
Pinterest的错误:哎呀无法读取/有些事情不对。
我对CDN网址的robots.txt看起来像使用Meta标签的这个
User-agent: Twitterbot
Disallow:
User-agent: Pinterest
Disallow:
User-agent: *
Allow: /robots.txt
Allow: /imagecache/*
Disallow:/
例子:
<meta property="og:image" content="https://static.hometriangle.com/imagecache/media/2916/htr-image-small-bathroom-390-2916.jpg?size=1200x630-3"/>
<meta property="twitter:image0" content="https://static.hometriangle.com/imagecache/media/2916/htr-image-small-bathroom-390-2916.jpg?size=1200x630-3"/>
如果我直接网址替换CloudFront的网址,图片越来越牵强。可能是什么问题?
其中Errorneous页:https://hometriangle.com/photos/2/bathroom 其中Errorneous形象:https://static.hometriangle.com/imagecache/media/2916/htr-image-small-bathroom-390-2916.jpg?size=1200x630-3
我也遇到了Pinterest的这个问题。一些实验表明,Pinterest在基于SNI(服务器名称指示)的SSL连接方面存在问题。
为了演示这一点,我设置了2个新的Cloudfront发行版。两者都启用了SSL,一个使用默认的Cloudfront证书,另一个使用我的自定义证书和所需的SNI。我没有预算来尝试600美元/月的SSL选项,所以我不能对此发表评论。
这两种发行版均可通过浏览器使用基于SSL的Cloudfront URL访问。
Pinterest能够从非SNI发行版中固定,但无法从基于SNI的发行版固定。
我在一周前向Pinterest发送了一个支持请求,但我得到的只是自动回复。 BOM-BOM。
以下是SNI上的wiki。所有主流的现代浏览器都支持它,但我猜Pinterest所写的任何内容都不支持。 http://en.wikipedia.org/wiki/Server_Name_Indication
谢谢雅各布。我想到了同样的SNI事情。发布在Twitter社区,如预期没有得到任何人的答复 – dhirendra 2014-09-29 14:27:35
我有同样的问题,pinterest取不工作在我的基于SNI的https上......并且没有来自pinterest支持的响应。 – Sebastien 2014-11-10 12:24:51
同样在这里。如果有人知道要提供官方Pinterest错误报告或有关此状态的任何新闻,请在此分享此信息。 – nachtigall 2014-11-13 15:04:21