Facebook的刮板眼见页面为空白 [英] Facebook scraper seeing page as blank

查看:163
本文介绍了Facebook的刮板眼见页面为空白的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了Facebook的喜欢,在我的网站分享和评论按钮和大多数的功能似乎是工作正常,但在Facebook上共享一个页面后,缩略图显示空白页面(点击缩略图用户将进入到共享的页面,因此没有任何问题与)。显然,这是Facebook的刮板如何看待我的整个网站。

I have installed Facebook like, share and comment buttons on my website and most of functionalities seem to be working ok, but after sharing a page on Facebook, thumbnail shows a blank page (clicking thumbnail takes user to the shared page, so there's no problem with that). Apparently this is how Facebook scraper sees my whole website.

我已经确定,可能的原因是刮板(出于某种原因不明我)会在我的服务器的/ var / www目录网站文件,而网站位于位于/ var / WWW / websitename /网页。我不知道是什么原因造成的,也不是我能够以某种方式直接Facebook的刮板将正确的路径。我能做些什么,使一切正常工作?我使用Debian +的Apache + ISPConfig,网站上运行的Joomla!

I have determined that the probable cause is that the scraper (for some reason unknown to me) looks for website files in /var/www directory of my server, while website is located at /var/www/websitename/web. I have no idea what causes this, nor was I able to somehow direct Facebook scraper to correct path. What can I do to make everything work properly? I am using Debian+Apache+ISPConfig, website runs on Joomla!.

推荐答案

和问题解决。这不是SSL的问题,也不是用我的网站上code的任何错误。问题是与Apache虚拟主机被配置为XX.XX.XX.XX:80和XX.XX.XX.XX:443。改变这种为*:80和*:443自动地解决了以往上市的每一个问题Facebook的刮刀。离开这个答案,以防有人曾经需要它。

And the problem is solved. It was not SSL issue, nor any bug with code on my site. The problem was with Apache virtual host being configured for xx.xx.xx.xx:80 and xx.xx.xx.xx:443. Changing that to *:80 and *:443 automagically solved every problem Facebook scraper ever listed. Leaving this answer in case someone ever needs it.

这篇关于Facebook的刮板眼见页面为空白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆