宝塔面板解决反向代理与SSL冲突的方法
需要注意2点:
- 先申请SSL后再设置反向代理,或者将反向代理暂停后再申请SSL再开启;
- 申请完证书后,通过如下代码将.well-known目录伪静态化,使得该目录可以被外部访问,即可实现自动续签。
[hide]
location /.well-known/
{
}
[/hide]
Copyright Notice: This article is an original work. Copyright belongs to Jason's Blog. Please contact the author for permission before reprinting.
Article URL: https://www.okjason.com/archives/79.html
If you have any questions or concerns about this article, feel free to leave a comment. I will try my best to respond as soon as possible.
None