mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #921] 如何通过域名绑定tcp端口 #729
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#729
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 @zjbdiy on GitHub (Sep 13, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/921
frps,frpc 同一版本,不同系统
frps.ini centsos 7 vps
[common]
bind_port = 8888
subdomain_host=zjbdiy.com
frpc.ini windows 64
[common]
server_addr = xxxx
server_port = 8888
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 3389
remote_port = 3389
subdomain = test
此配置目的映射windows主机的远程桌面,此时连接成功,test.zjbdiy.com可以使用,但是其他任意二级域名均被解析到此主机的远程桌面,比如test2.zjbdiy.com
我未测试其他协议 不知道是不是域名绑定只支持http和https
在此感谢作者的辛勤付出
@coreychen commented on GitHub (Sep 17, 2018):
这个跟软件无关把,应该是你自己的域名管理问题,在你的域名管理界面上增加test2的跳转解析
@zjbdiy commented on GitHub (Sep 18, 2018):
要实现客户端定义域名,必须使用泛解析 ,使用的泛解析 我还设置什么test2跳转?
@MondayWoo commented on GitHub (Oct 8, 2018):
绑定端口后就可以直接通过域名访问吗,还是仍然要通过domain:port的方式访问。sunny的frp服务可以通过域名不加端口访问映射的内容,我找遍了frp的各个设置也没弄明白如何设置不加端口访问,或者说这个功能是sunny自己修改的吗
更新:配置Nginx反向代理来实现省去端口号访问映射内容
@astorm-z commented on GitHub (Mar 4, 2024):
老哥,这个nginx怎么配可以看一下吗,我在nginx这样配行不通:
`
server {
listen 80;
server_name xxx.yyy.cn;
`
@MondayWoo commented on GitHub (Mar 4, 2024):
那台机器没了,不过你google下frp nginx 反向代理,好多文章啊。
proxy_pass http://127.0.0.1:3022/,这个3022端口是frps上设置的http端口吗