端口 443 上出现 SSL 错误,页面未显示并导致错误 404

发布于 2024-12-11 19:53:09 字数 582 浏览 0 评论 0 原文

我最近必须找到一种方法来为我的域名获取 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

樱&纷飞 2024-12-18 19:53:09

您需要将服务器配置为也在端口 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.

暮倦 2024-12-18 19:53:09

安装证书后,您必须通过以下方式激活 SSL

Security -> SSL/TLS Manager -> Activate SSL on Your Web Site (HTTPS)

Once you installed ther certificates, you have to activate SSL via

Security -> SSL/TLS Manager -> Activate SSL on Your Web Site (HTTPS)
青柠芒果 2024-12-18 19:53:09

如果您收到 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.

过气美图社 2024-12-18 19:53:09

我在一台主机很少的服务器上遇到了类似的问题(目前只有一台支持 https),

我在 cpanel FAQ,我去了WHM Home >>服务配置>> Apache 配置>>包括编辑器>>预包含虚拟主机,并添加以下行:

<VirtualHost IPADDRESS:443>
    ServerName HOSTNAME
    DocumentRoot /usr/local/apache/htdocs
    ServerAdmin EMAIL
    <IfModule mod_suphp.c>
       suPHP_UserGroup MYUSER MYGROUP
    </IfModule>
    SSLEngine on
    SSLCertificateFile SSLCERTIFICATEFILE
    SSLCertificateKeyFile YOUR-SSLCERTIFICATEKEYFILE
</VirtualHost>

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:

<VirtualHost IPADDRESS:443>
    ServerName HOSTNAME
    DocumentRoot /usr/local/apache/htdocs
    ServerAdmin EMAIL
    <IfModule mod_suphp.c>
       suPHP_UserGroup MYUSER MYGROUP
    </IfModule>
    SSLEngine on
    SSLCertificateFile SSLCERTIFICATEFILE
    SSLCertificateKeyFile YOUR-SSLCERTIFICATEKEYFILE
</VirtualHost>
怼怹恏 2024-12-18 19:53:09

我意识到这个问题已经有4年历史了。

如果您可以访问根域中的 html 页面(例如 https://midomain.com/),但可以访问 https://midomain.com/ 等目录中的页面> 给你一个 404 Not Found 错误,那么你可能需要将这些行添加到你的 httpd-ssl 文件中:(

适用于 Apache 2.4)

 <Directory />
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All

    Order deny,allow
    Allow from all
  </Directory>

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 like https://midomain.com/ give you a 404 Not Found error, then you probably need to add these lines to your httpd-ssl file:

(applies to Apache 2.4)

 <Directory />
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All

    Order deny,allow
    Allow from all
  </Directory>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文