mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #2596] [Feature Request] 客户端没有连接时,访问能否报503错误,而非404 #2068
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#2068
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?
Originally created by @m2276699 on GitHub (Sep 30, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2596
Describe the feature request
需求:做http转发时,nginx识别500错误时,需转发到其他可用服务
现状:当客户端没有连接时,frp返回的状态码是404,nginx无法转到备用服务器。
虽然可以识别404后转发到备用服务器,但是很多情况下都不现实,毕竟外网http服务经常被扫描,404多了就直接到备用服务器了。
Describe alternatives you've considered
当客户端没有连接时,frp返回的状态码是503
Affected area
@blizard863 commented on GitHub (Oct 8, 2021):
提供下配置。
@m2276699 commented on GitHub (Oct 10, 2021):
nginx
frps.ini
此时frpc没有启动。当访问x.abc.com时,frps返回的状态码是404,希望是503
@fatedier commented on GitHub (Oct 11, 2021):
目前不太可能改成返回 503,含义和目前不是很匹配,frp 的服务端并不知道后端的服务是不可用还是不存在。
建议看是否能有其他的方式才判断是否重试。