mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #1896] [feature request] fastcgi support #1501
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#1501
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 @frankli0324 on GitHub (Jul 10, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1896
有没有可能添加fastcgi->http 根据server name复用端口的功能?
给frps添加类似vhost_http_port的vhost_fcgi_port,frpc添加fcgi type,配置类似http这样?
@fatedier commented on GitHub (Jul 15, 2020):
从你上面的请求路径里,对外暴露的还是 http 的接口,内部 fastcgi 建议还是通过 nginx 来转发,frp 只负责将请求转发给 nginx。
否则感觉类似的需求需要将整个 nginx 的功能再实现一遍了,有些臃肿了。
@frankli0324 commented on GitHub (Jul 15, 2020):
并不需要实现nginx的整个功能吧emmmm既然能通过HTTP Host来判断走哪个代理。。原理应该是一样的
我有一大堆php服务,藏在frpc后面,目前是我得给每个应用都开一个nginx去fastcgi_pass
然后现在想的是,有一个nginx会fastcgi_pass到一个frps的端口,frps通过cgi请求中的参数将tcp流原模原样代理到相应的应用,这样web应用方面就只需要启动php-fpm而不需要nginx,应该也不会出现需要X-Forwarded-For来判断远程ip的情况了
@frankli0324 commented on GitHub (Jul 15, 2020):
我试试吧,顺便学一学go
@fatedier commented on GitHub (Jul 16, 2020):
对于这一类 nginx 能解决的需求,加了一个,就会有另外一个。既然 nginx 提供了这样丰富的能力,就尽量组合来用,会减少很多复杂度。
当然,如果你有兴趣提供一个 fastcgi 的 frpc plugin,也可以尝试一下,尽量用可插拔的设计实现。
@frankli0324 commented on GitHub (Jul 17, 2020):
emmmmm好吧