配置nginx后进行访问,发现页面的排序错乱,样式没有加载

百度找到解决方法是在nginx.conf中的server里面加下面的代码

 location ~ .*\.(js|css)$ {
             proxy_pass http://127.0.0.1:8866;
         }

然后有个问题是我本身的镜像系统里面的nginx配置了这个location的js和css的配置
我没有删除原配置然后重新添加新配置后发现没作用
于是删除原配置再添加新配置,css和js成功加载
参考的博客如下:https://www.cnblogs.com/panxiaoming/p/6024063.html

相关文章:

  • 2021-07-31
  • 2021-12-23
  • 2021-11-28
  • 2022-12-23
  • 2021-09-09
  • 2022-12-23
  • 2021-11-26
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-17
  • 2021-08-04
  • 2022-12-23
  • 2023-03-25
  • 2021-06-03
相关资源
相似解决方案