mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #798] 二级域名,默认转发问题 #622
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#622
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 @equinox-flower on GitHub (May 29, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/798
请问二级域名如何配置到其他后端?
例如:
我的frps 绑定了 subdomain_host=xxx.com
frpc 配置了 subdomain=yyy
这样 访问 yyy.xxx.com 就可以打开配置好的web。
现在是想,如何配置 访问xxx.com 时候访问 某个网页,但又不影响三级域名的访问?,比如访问xxx.com时转发到192.168.0.1:80上去。xxx.com 默认出现The page you visit not found.
或者 如何配置frps 访问未配置的域名都转发到某个ip上?
还有个问题:
[file]
type=tcp
remote_port=6000
plugin_local_path=/tmp
plugin_strip_prefix=file
plugin_http_user=admin
plugin_http_passwd=admin
plugin=static_file
无法打开
netstat -l 服务端也未见 6000端口在监听
但是dashboard看到tcp 6000端口正常运行
@BBDXF commented on GitHub (Jun 7, 2018):
你这个想法与我的不谋而合,FRP单独实现不了。我是利用OpenResty+Lua+Redis实现了动态路由效果。FRP只用了端口代理功能。
话说,FRP部分功能越来越与Nginx一类的重叠了~~
@bluesky4485 commented on GitHub (Jun 7, 2018):
可以将frqs的vhost_http_port改为一个非80的端口,再到nginx里面将yyy.xxx.com的80端口反向代理到frqs配置的非80端口上去,xxx.com的80端口的访问就与frqs没啥关系了,可以nginx代理,也可以直接再DNS那边做域名解析