1. 修改 hosts 配置文件
路径:C:\Windows\System32\drivers\etc
在后面追加以下内容:
# gulimall #
你的ip search.gulimall.com
2. 配置 nginx 动静分离
Xftp 进入 /mydata/nginx/html/static
目录,创建 search
文件夹,将搜索页相关的静态资源放进去
3. 修改 nginx 配置文件
vi /mydata/nginx/conf/conf.d/gulimall.conf
4. 其它
参考:gulimall_product_dsl.json
未解决
- 某些资源明明nginx上面有,但是加载不出来