企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# 1.宝塔后台网站配置 1.打开宝塔后台选择网站,选择自己的网站,点击配置,选择配置文件,在里面新增这段代码 location /whhk_distributor_h5/ { proxy_pass https://whhk.qianchuantech.com/whhk_distributor_h5/; proxy_set_header Host whhk.qianchuantech.com; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header REMOTE-HOST $remote_addr; add_header X-Cache $upstream_cache_status; #Set Nginx Cache set $static_file2sMpICgO 0; if ( $uri ~* "\.(gif|png|jpg|css|js|woff|woff2)$" ){ set $static_file2sMpICgO 1; expires 12h; } if ( $static_file2sMpICgO = 0 ){ add_header Cache-Control no-cache; } } 保存后,就可以用自己的域名访问分销商H5前端页面了 原来的访问地址 https://whhk.qianchuantech.com/whhk_distributor_h5/index.html?id=1 配置后台的访问地址 域名换成你自己的域名(如下所示mall.qianchuantech.com 换成你自己的域名) https://mall.qianchuantech.com/whhk_distributor_h5/index.html?id=1 ![](https://img.kancloud.cn/44/e3/44e3b338f296c03aeb95082e0823f6ab_1609x597.png) ![](https://img.kancloud.cn/6e/c4/6ec4d399c3768d90e5d626ebcf9c283f_948x755.png)