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

时间:2015-05-25 11:20:41

标签: apache ubuntu

我正在使用带有乘客的Apache for rails app,当我输入http://localhost时,它会自动重新映射到https://localhost。我怎么能阻止它

由于

1 个答案:

答案 0 :(得分:0)

要在不使用命令的情况下禁用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