解决宝塔面板Nginx代理完成后访问不到js、css的问题

在主配置文件加入如下设置:

代码:

#加载js等文件
location ~ .*.(js|css)?$
{
expires 12h;
error_log off;
access_log off;
}

如图:
解决宝塔面板Nginx代理完成后访问不到js、css的问题

相关文章:

  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-25
  • 2021-06-11
猜你喜欢
  • 2022-12-23
  • 2021-08-21
  • 2021-12-06
  • 2021-05-30
  • 2022-12-23
  • 2021-05-15
  • 2021-05-08
相关资源
相似解决方案