mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[PR #5276] [CLOSED] Implement a simple 'strip prefix' feature for http locations #5224
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#5224
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fatedier/frp/pull/5276
Author: @cayspekko
Created: 4/3/2026
Status: ❌ Closed
Base:
dev← Head:upstream/dev📝 Commits (2)
9a633eaImplement a simple 'strip prefix' feature for http locationscf6a423fixes unknown manifest📊 Changes
8 files changed (+174 additions, -0 deletions)
View changed files
📝
.github/workflows/build-and-push-image.yml(+2 -0)📝
pkg/config/v1/proxy.go(+3 -0)📝
pkg/msg/msg.go(+1 -0)📝
pkg/util/vhost/http.go(+8 -0)➕
pkg/util/vhost/http_test.go(+107 -0)📝
pkg/util/vhost/vhost.go(+1 -0)📝
server/proxy/http.go(+1 -0)📝
test/e2e/v1/basic/http.go(+51 -0)📄 Description
WHY
Though frpproxy isn't meant to be a full blown L7 reverse proxy, this particular feature is useful if you use multiple dynamic paths on the server, but you don't want to hassle with url prefix logic on your http client. Especially useful for http clients that serve pure json apis. In my particular case, I cannot use domain based identifiers. Fit's naturally with the "locations" setting, and thus it only strips those particularly prefixes as they are defined.
Example:
relates to https://github.com/fatedier/frp/issues/4981
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.