当前位置:首页分类3用宝塔给AList安装https证书

用宝塔给AList安装https证书

用宝塔给AList安装https证书

宝塔板反向替换比较容易,只需要注意更改默认的新站点概要文件就行了。

1.先创建一个空白网站

用宝塔给AList安装https证书

2.设置-配置文件

用宝塔给AList安装https证书
用宝塔给AList安装https证书

在删除配置文件删除以下文件

- location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md
- location ~ .\*\.(gif|jpg|jpeg|png|bmp|swf)$
- location ~ .\*\.(js|css)?$

3.在配置文件- #禁止访问的文件或目录 下面增加

location / {
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header X-Forwarded-Proto $scheme;
  proxy_set_header Host $http_host;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header Range $http_range;
	proxy_set_header If-Range $http_if_range;
  proxy_redirect off;
  proxy_pass http://127.0.0.1:5244; # 改成你的ip
  # the max size of file to upload
  client_max_body_size 20000m;
}
用宝塔给AList安装https证书

4.宝塔申请ssl 过于简单就不多展示啦

记得打开强制https访问 (不开也可以)

用宝塔给AList安装https证书

5.访问试试(成功)快去试试吧

用宝塔给AList安装https证书

站内推荐

2分钟搭建一个AList网盘系统

版权声明

网站: 大绵羊博客

声明:本站遵循 CC 4.0 BY-SA协议

转载: 转载请附上原文出处,更多

给TA打赏
共{{data.count}}人
人已打赏
经验分享

网站/博客 樱花飘落特效

2023-2-12 17:07:42

经验分享

【Wordpress美化】给你的博客加一个云空调

2023-4-19 18:08:39

3 条回复 UP文章作者 M管理员
  1. 倦意

    绵羊你的文章越来越水了(😁

  2. 倦意

    绵羊,你的文章越来越水了😁

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索