Apache 停止重定向到 https ://from http://

标签 apache ubuntu

当我输入 http://localhost 时,我正在使用 Apache 和 passenger for rails 应用程序, 它会自动重定向到 https://localhost .我怎样才能阻止它

谢谢

最佳答案

要在没有命令的情况下禁用 SSL,您可以手动编辑 ssl 配置文件中的 SSLEngine 指令(通常在/etc/apache2/sites-enabled/default-ssl.conf 中) 改变:

SSLEngine on

到:

SSLEngine off

重启 Apache

sudo service apache2 restart

来自:https://httpd.apache.org/docs/2.4/mod/mod_ssl.html

关于Apache 停止重定向到 https ://from http://,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30437183/

相关文章:

安卓 NDK : ndk-build building error

git - 为什么 GIT 提交会显示我的组织名称和电子邮件,而不是我的姓名和电子邮件?

ubuntu - docker daemon 没有在我的 ubuntu vm 中启动, "service start"ok by "ps"没有结果

linux - webkit如何找到libflashplayer.so?

java - Eclipse 在 Web 部署程序集中包含来自 apache ivy IDE 插件的多个 jar

java - 外卡子域 apache+tomcat

apache - 如何从 https 子域 URL 中删除 www

asp.net-mvc - 如何解决在 Linux(Ubuntu 18.04)中做 EF Core 数据库脚手架的 'Cannot authenticate using Kerberos' 问题?有什么解决办法吗?

c - 使用 Apache API,为什么要逐行输入字符串?任何原因?

php - 为什么网络应用程序会更喜欢一个网络服务器而不是另一个?