
宝塔板反向替换比较容易,只需要注意更改默认的新站点概要文件就行了。
1.先创建一个空白网站

2.设置-配置文件


在删除配置文件删除以下文件
- 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;
}

4.宝塔申请ssl 过于简单就不多展示啦
记得打开强制https访问 (不开也可以)

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

站内推荐
绵羊你的文章越来越水了(😁
不要慌 😏😏
绵羊,你的文章越来越水了😁