当前位置:   article > 正文

21. 谷粒商城搭建检索页面

21. 谷粒商城搭建检索页面

1. 修改 hosts 配置文件

路径:C:\Windows\System32\drivers\etc

在后面追加以下内容:

# gulimall #
你的ip		search.gulimall.com
  • 1
  • 2

2. 配置 nginx 动静分离

Xftp 进入 /mydata/nginx/html/static 目录,创建 search 文件夹,将搜索页相关的静态资源放进去

3. 修改 nginx 配置文件

vi /mydata/nginx/conf/conf.d/gulimall.conf
  • 1

在这里插入图片描述

4. 其它

参考:gulimall_product_dsl.json

未解决

  • 某些资源明明nginx上面有,但是加载不出来
声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号