<p>

<span style="font-size:16px;">Nginx反代可以隐藏掉端口,增加SSL证书显示</span> 

</p>
<p>

<span style="font-size:16px;">3.X/4.X的宝塔是一个PY程序,运行在8888端口,所以我们可以用Nginx来反代它</span> 

</p>
<p>

<span style="font-size:16px;">1.自行准备好相关证书&nbsp;</span> 

</p>
<p>

<span style="font-size:16px;">2.宝塔后台网站管理中添加网站</span> 

</p>
<p>

<img src="https://www.hivps.cn/wp-content/uploads/2017/05/20170510103250.png" alt="" width="580" height="484" class="alignnone size-full wp-image-450" /> 

</p>
<p>

<br />

</p>
<p>

<span style="font-size:16px;">3.编辑刚添加的网站,点最下面的反代理,如下图所示</span> 

</p>
<p>

<img src="https://www.hivps.cn/wp-content/uploads/2017/05/20170510103331.png" alt="" width="614" height="547" class="alignnone size-full wp-image-451" /> 

</p>
<p>

<br />

</p>
<p>

<span style="font-size:16px;">证书就不说了,再SSL选项内自行填写就行啦。</span>

</p>

Last modification:December 13th, 2017 at 11:43 pm