差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版 两侧同时换到之后的修订记录
amh4.2:amh4.2.1_ssl_bug_fix [2018/03/30 11:28]
root
amh4.2:amh4.2.1_ssl_bug_fix [2018/04/04 14:10]
root
行 14: 行 14:
 \\ \\
 <​code>​ <​code>​
-####### bug fix +                                                        ​####### bug fix 
-$nginx_ssl_conf = file_get_contents($nginx_vhost_conf);​ +                                                        $nginx_ssl_conf = file_get_contents($nginx_vhost_conf);​ 
-$nginx_ssl_conf = preg_replace('/​\n#​------SSL BEGIN(.*)#​------SSL END/​is',​ '',​ $nginx_ssl_conf);​ +                                                        $nginx_ssl_conf = preg_replace('/​\n#​------SSL BEGIN(.*)#​------SSL END/​is',​ '',​ $nginx_ssl_conf);​ 
-file_put_contents($ssl_nginx_tmpfile,​ $nginx_ssl_conf);​+                                                        file_put_contents($ssl_nginx_tmpfile,​ $nginx_ssl_conf);​
  
-$apache_ssl_conf = file_get_contents($apache_vhost_conf);​ +                                                        ​$apache_ssl_conf = file_get_contents($apache_vhost_conf);​ 
-$apache_ssl_conf = preg_replace('/​\n#​------SSL BEGIN(.*)#​------SSL END/​is',​ '',​ $apache_ssl_conf);​ +                                                        $apache_ssl_conf = preg_replace('/​\n#​------SSL BEGIN(.*)#​------SSL END/​is',​ '',​ $apache_ssl_conf);​ 
-file_put_contents($ssl_apache_tmpfile,​ $apache_ssl_conf);​+                                                        file_put_contents($ssl_apache_tmpfile,​ $apache_ssl_conf);​
  
-$cmd = "amh module AMSSL-1.0 admin restore,​{$ssl_vhost_new},;";​ +                                                        ​$cmd = "amh module AMSSL-1.0 admin restore,​{$ssl_vhost_new},;";​ 
-$cmd = Functions::​trim_cmd($cmd);​ +                                                        $cmd = Functions::​trim_cmd($cmd);​ 
-shell_exec($cmd);​ +                                                        shell_exec($cmd);​ 
-####### bug fix+                                                        ####### bug fix
 </​code>​ </​code>​
  
最后更改: in 2018/04/04 14:12