apache - XAMPP SSL 错误 404

标签 apache ssl

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

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

最佳答案

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

我在 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>

现在一切正常

关于apache - XAMPP SSL 错误 404,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28366619/

相关文章:

apache - mod_rewrite 子域(带路径)到 URL

php - 如何在 NetBeans 的 java web 应用程序项目中运行 php

apache - htaccess 在浏览器中启用目录 View 时添加密码

http - Indy 代理服务器 HTTPS 到 HTTP

apache - 使用 htaccess 将 HTTPS 重定向到单个 PHP 文件

php - LAMP 服务器崩溃但内存和处理器使用率低

php - 在 xampp 上安装 vtiger crm 6.4.0 时遇到问题

ios - 防止 MitM (https) 使用包含的 pub 加密查看密码。 iOS/Android 应用程序中的 key

ssl - 为本地服务器设置 Verisign SSL

java - 如何在 Java SE 中使用 SSL 设置相互身份验证