[GH-ISSUE #3747] 配合nginx,代理公众号txt文件,使用 https:/域名/MP_*.txt 无法访问到文件,必须要加一层uri,比如加上 /mp :https:/域名/mp/MP_*.txt #2979

Closed
opened 2026-05-05 13:55:22 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @vual on GitHub (Nov 6, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3747

Bug Description

配合nginx,代理公众号txt文件,使用 https:/域名/MP_.txt 无法访问到文件,必须要加一层uri,比如加上 /mp :https:/域名/mp/MP_.txt

我通过本地访问是可以正常访问的 :https://localhost:端口/MP_.txt
nginx 配置应该是没问题
location /MP_
.txt {
alias "D:/Program Files/nginx-1.25.3/html/MP_*.txt";
}

frpc Version

0.52.3

frps Version

0.52.3

System Architecture

windows/amd64

Configurations

proxies
name = "web"
type = "https"
localIP = "127.0.0.1"
localPort = 端口
customDomains = ["域名"]

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 @vual on GitHub (Nov 6, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3747 ### Bug Description 配合nginx,代理公众号txt文件,使用 https:/域名/MP_*.txt 无法访问到文件,必须要加一层uri,比如加上 /mp :https:/域名/mp/MP_*.txt 我通过本地访问是可以正常访问的 :https://localhost:端口/MP_*.txt nginx 配置应该是没问题 location /MP_*.txt { alias "D:/Program Files/nginx-1.25.3/html/MP_*.txt"; } ### frpc Version 0.52.3 ### frps Version 0.52.3 ### System Architecture windows/amd64 ### Configurations [[proxies]] name = "web" type = "https" localIP = "127.0.0.1" localPort = 端口 customDomains = ["域名"] ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@vual commented on GitHub (Nov 6, 2023):

已解决 nginx 配置里只能用 = 号

<!-- gh-comment-id:1794132335 --> @vual commented on GitHub (Nov 6, 2023): 已解决 nginx 配置里只能用 = 号
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#2979
No description provided.