我最近必须找到一种方法来为我的域名获取 SSL 证书,正如您所知,Facebook 要求在 10 月 1 日之前提供此证书。
因此,我在我的服务器上签署并安装了startssl 证书。
现在我的问题是,当我尝试访问我的 https 站点之一时,它总是要求我对我的证书进行例外处理(目前还可以),但是在创建此例外之后,我的服务器(据我所知,这是一台 linux)具有 cPanel 后端的服务器向我发出 404 页面未找到通知。
404 Not Found
The server can not find the requested page:
greentomatocars.com.au/fbtab/booking (port 443)
Please forward this error screen to greentomatocars.com.au's WebMaster.
FaceBook 选项卡 HTTPS 站点
任何可用的诊断程序这是什么意思以及问题是什么?
任何答案将不胜感激。
I just recently had to find a way to get a SSL certificate for my domain as facebook required this by the 1st of October as you may aware.
Therefore I signed and installed my startssl certificate on my server.
Now my problem is, when I try to go to one of my https sites it always asks me to make an exception for my certificate (which is okay at the moment) but after creating this exception my Server, which is as I know a linux server with an cPanel backend, fires a 404 page not found notification to me.
404 Not Found
The server can not find the requested page:
greentomatocars.com.au/fbtab/booking (port 443)
Please forward this error screen to greentomatocars.com.au's WebMaster.
A FaceBook Tab HTTPS Site
Any diagnostics available what's this all about and whats the problem?
Any answer will be appreciated.
发布评论
评论(5)
您需要将服务器配置为也在端口 443 (https) 上提供内容。目前它仍在使用cPanel 默认值。
You need to configure your server to also serve your content on port 443 (https). Right now it's still using the cPanel default.
安装证书后,您必须通过以下方式激活 SSL
Once you installed ther certificates, you have to activate SSL via
如果您收到 404,则您的 SSL 工作正常,因为“404”是通过 SSL 传输的。我会调查实际问题,即 404。
If you got the 404, your SSL is working perfectly, as the "404" was transmitted via SSL. I would investigate the actual problem, which is the 404.
我在一台主机很少的服务器上遇到了类似的问题(目前只有一台支持 https),
我在 cpanel FAQ,我去了WHM Home >>服务配置>> Apache 配置>>包括编辑器>>预包含虚拟主机,并添加以下行:
i had similar problem on a server with few hosts (currentlly only one with https support)
i found the sulotion in cpanel FAQ, i went to WHM Home >> Service Configuration >> Apache Configuration >> Include Editor >> Pre Virtual Host Include, and added the following lines:
我意识到这个问题已经有4年历史了。
如果您可以访问根域中的 html 页面(例如
https://midomain.com/
),但可以访问https://midomain.com/
等目录中的页面> 给你一个404 Not Found
错误,那么你可能需要将这些行添加到你的httpd-ssl
文件中:(适用于 Apache 2.4)
I realize this question is 4 years old.
If you can access the html page at your root domain (say
https://midomain.com/
), but pages in a directory likehttps://midomain.com/
give you a404 Not Found
error, then you probably need to add these lines to yourhttpd-ssl
file:(applies to Apache 2.4)