【问题标题】:XAMPP SSL Error 404XAMPP SSL 错误 404
【发布时间】:2015-04-06 15:29:25
【问题描述】:

我在 XAMPP 服务器上安装了 SSL 证书,当我将 httpd-ssl.conf 中的 DocumentRoot 更改为我的项目文件夹时它可以工作,是的,但是当我输入时http://localhost 它将我重定向到 https://localhost/xampp,但我遇到了错误。

所以我不会更改 DocumentRoot,只是让 SSL 在实际的 Root 上工作。 我试图更改 httpd-vhost 文件,但它没有

【问题讨论】:

    标签: apache ssl


    【解决方案1】:

    这很有趣,我发誓我做到了。

    在 httpd-vhost 文件中我复制了这样的内容:

    <VirtualHost *:443>
        ServerAdmin webmaster@localhost
        DocumentRoot "C:/xampp/htdocs"
        ServerName localhost
        ServerAlias localhost
        SSLEngine on
        SSLCertificateFile "conf/ssl.crt/server.crt"
        SSLCertificateKeyFile "conf/ssl.key/server.key"
        ##ErrorLog "logs/dummy-host.example.com-error.log"
        ##CustomLog "logs/dummy-host.example.com-access.log" common
    </VirtualHost>
    

    现在一切都很好。

    【讨论】:

      猜你喜欢
      • 2018-02-17
      • 2016-07-03
      • 2016-12-14
      • 2011-10-20
      • 2018-06-27
      • 2018-08-15
      • 2012-06-30
      • 2017-11-21
      • 2014-08-11
      相关资源
      最近更新 更多