linux - Apache2 将 https 重定向到没有证书的 http

标签 linux apache ubuntu apache2

我已经阅读了这里所有关于此的帖子,但是没有一个有效。

我尝试编辑 000-default 并将端口 443 重定向到 80 但没有成功。

任何开箱即用的想法都会很棒。

谢谢

最佳答案

在你的/etc/apache2/sites-available/000-default.conf 中

<VirtualHost *:443>
        ServerName yourname.site.com
        ProxyPass         / http://127.0.0.1:80/
        ProxyPassReverse  / http://127.0.0.1:80/
</VirtualHost>

不要忘记加载你的文件 a2ensite/etc/apache2/sites-available/000-default.conf

关于linux - Apache2 将 https 重定向到没有证书的 http,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27059337/

相关文章:

c - 支持 Linux 用户空间中的字节排序

linux - Bash - 使用 socat 的代理服务器

c++ - C++ 中的 posix 线程有些奇怪

linux - nginx 和 linux 上不区分大小写的路径匹配

python - 自签名证书私钥值不匹配

linux - Ubuntu终端¿如何移动$符号? - 菜鸟问题

ubuntu - seleniumRC - 从哪里解压并运行 Java 程序?

apache - 如何在 Windows 上的 Apache 服务器上运行我的 Asp.net Core 应用程序?

c - GCC无法编译程序

linux - Ubuntu 在输入密码后无法启动