admin 发表于 2023-3-2 19:25:46

WHM&cPanel取消SSL访问

<p>安装好cPanel,默认是采用https(SSL)访问,需要取消https(SSL)模式,方法如下:</p>
<p><strong>1.通过WHM管理面板取消SSL</strong><br>
登录WHM管理面板找到路径   <strong>Main &gt;&gt; Server Configuration &gt;&gt; Tweak Settings</strong></p>
<ul>
<li><strong>Always redirect to SSL   -&gt;   on</strong></li>
<li><strong>Require SSL                     -&gt;   off</strong></li>
</ul>
<p><strong>2.通过命令取消SSL</strong></p>
<pre>vi /var/cpanel/cpanel.config</pre>
<p>由于参数很多,我们可以通过vi编辑命令中的搜索来查找:</p>
<p>查找第一个参数“requiressl”</p>
<pre>requiressl</pre>
<p>修改为</p>
<pre>requiressl=0</pre>
<p>第二个参数“alwaysredirecttossl”</p>
<pre>alwaysredirecttossl</pre>
<p>修改为</p>
<pre>alwaysredirecttossl=0</pre>
<p>保存退出!</p>
<p>执行更新调整命令</p>
<pre>/usr/local/cpanel/whostmgr/bin/whostmgr2 --updatetweaksettings</pre>
<p>修改后WHM&amp;cPanel的访问方式有2种:http 和 https(SSL)</p>
<p>WHM管理面板http访问端口:2086<br>
WHM管理面板https访问端口:2087<br>
cPanel客户端http访问端口:2082<br>
cPanel客户端https访问端口:2083</p>
                                        <p class="post-copyright">未经允许不得转载:<ahref="https://www.wangchao.info/">王超博客</a> &raquo; <ahref="https://www.wangchao.info/1179.html">WHM&cPanel取消SSL访问</a></p>
页: [1]
查看完整版本: WHM&#038;cPanel取消SSL访问