当我输入 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
关于Apache 停止重定向到 https ://from http://,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30437183/