Elastix 禁用SSL(https),还原为 http 访问

1.相关配置文件目录:

Apache的配置文件:httpd.conf,位于:/etc/httpd/conf/httpd.conf,配置文件中包含 Include conf.d/*.conf ,引入了 /etc/httpd/conf.d/ 文件夹下的所有配置文件。

2.修改配置文件:/etc/httpd/conf.d/elastix.conf,禁用重定位地址到 https :

原文:

<Directory "/var/www/html">
# Redirect administration interface to https
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</Directory>

修改为:

<Directory "/var/www/html">
# Redirect administration interface to https
RewriteEngine off
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</Directory>

3.重命名配置文件:/etc/httpd/conf.d/elastix.conf,不再包含引入 ssl 配置文件:

[/etc/httpd/conf.d]# mv ssl.conf ssl.conf1

4.重启 Apache:

httpd -k restart

 

 

 

posted @ 2013-08-09 16:23  cnshen  阅读(613)  评论(0)    收藏  举报