[GH-ISSUE #2944] 内网穿透后内网网站静态资源无法访问 #2348

Closed
opened 2026-05-05 13:30:52 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @ynzhangsp on GitHub (May 17, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2944

Bug Description

通过frp内网穿透后,外网访问内网服务器部署的网站,可以正常访问,但静态资源都无法加载,控制台显示网站调用的CSS、JS等文件都显示404,网页样式没有了,请问大佬们这是怎么回事啊

frpc Version

0.42.0

frps Version

0.42.0

System Architecture

frps:linux/amd64,frpc:linux/arm64

Configurations

服务器端为Debian 64位系统,本地客户端为树莓派4B Debian 64位系统

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @ynzhangsp on GitHub (May 17, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/2944 ### Bug Description 通过frp内网穿透后,外网访问内网服务器部署的网站,可以正常访问,但静态资源都无法加载,控制台显示网站调用的CSS、JS等文件都显示404,网页样式没有了,请问大佬们这是怎么回事啊 ### frpc Version 0.42.0 ### frps Version 0.42.0 ### System Architecture frps:linux/amd64,frpc:linux/arm64 ### Configurations 服务器端为Debian 64位系统,本地客户端为树莓派4B Debian 64位系统 ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [X] User Experience - [X] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@Parmicciano commented on GitHub (May 18, 2022):

It's probably a misconfiguration of your client.
The image here is in the folder of the website and it work well

<!-- gh-comment-id:1129651383 --> @Parmicciano commented on GitHub (May 18, 2022): It's probably a misconfiguration of your client. The image [here](http://service.masternetwork.us/) is in the folder of the website and it work well
Author
Owner

@Becods commented on GitHub (May 19, 2022):

CM6PHS7AGGJPN31Y2DI83MS.png

<!-- gh-comment-id:1131505179 --> @Becods commented on GitHub (May 19, 2022): ![CM6PHS7AGGJPN31Y2DI83MS.png](https://s2.loli.net/2022/05/19/YCWKze3vuMG4lrt.png)
Author
Owner

@chjiyun commented on GitHub (May 20, 2022):

我的客户端 windows 也是无法访问,配置跟文档一样的

<!-- gh-comment-id:1132973680 --> @chjiyun commented on GitHub (May 20, 2022): 我的客户端 windows 也是无法访问,配置跟文档一样的
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#2348
No description provided.