解决宝塔面板Nginx代理完成后访问不到js、css的问题 在主配置文件加入如下设置: 在主配置文件加入如下设置: 代码: #加载js等文件 location ~ .*.(js|css)?$ { expires 12h; error_log off; access_log off; } 如图: