sun-panel icon indicating copy to clipboard operation
sun-panel copied to clipboard

使用nginx做二级目录代理时无法请求到静态资源

Open zhucuiding opened this issue 1 year ago • 3 comments

下面是我的nginx配置

  location /sun-panel/ {
      proxy_pass http://192.168.3.200:3002/;
      proxy_set_header Host $host;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header X-Forwarded-Proto $scheme;
  }

zhucuiding avatar Nov 19 '23 05:11 zhucuiding

我也有同样的问题,应该可以和 #43 合并

yinanxu0 avatar Dec 20 '23 12:12 yinanxu0

解决了吗,我也碰到了同样的问题

MuggleTan avatar Jan 19 '24 11:01 MuggleTan

配置文件中找到以下两处注释掉即可

location ~ .*.(gif|jpg|jpeg|png|bmp|swf)$

location ~ .*.(js|css)?$

xsj684135 avatar Feb 03 '24 13:02 xsj684135