mirror of
https://github.com/fatedier/frp.git
synced 2026-05-16 16:45:50 -06:00
[GH-ISSUE #173] 服务端不支持 Nginx 反向代理吗? #115
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#115
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 @kuoruan on GitHub (Dec 12, 2016).
Original GitHub issue: https://github.com/fatedier/frp/issues/173
服务端 Nginx 添加一个 server: frp.domain.com 带 HTTPS,然后设置反代
客户端配置:
日志如下:
客户端配置:
服务端 Nginx 添加一条反向代理:
访问 frp-web.domain.com 能正常访问到客户端上的网站,但是我修改 local_host 指向另一个内网服务器,访问到的还是客户端所在服务器上的网站,我应该如何配置才能访问到内网里的其他服务器呢?
@fatedier commented on GitHub (Dec 12, 2016):
客户端的
server_addr是你服务器的 IP 地址,server_port是 7000。@kuoruan commented on GitHub (Dec 12, 2016):
@fatedier 我的意思就是不通过 7000 端口访问服务端,统一走 Nginx 反代的 443 端口。
@fatedier commented on GitHub (Dec 12, 2016):
frpc 和 frps 的通信不是 HTTP 协议,只能用 tcp 的反向代理。
@kuoruan commented on GitHub (Dec 12, 2016):
@fatedier 那第二个问题,服务端 服务器B 有外网 IP,客户端 服务器A 和另一台 服务器C 都属于内网。
我需要在 服务器A 上如何配置才能在外网上访问到 服务器C ?
@fatedier commented on GitHub (Dec 12, 2016):
服务器A 上的客户端配置:
@kuoruan commented on GitHub (Dec 12, 2016):
@fatedier 我又尝试了一下,应该是可以的,原来我写成了 local_host
@kuoruan commented on GitHub (Dec 12, 2016):
新找到个 nginx tcp 反向代理的插件,应该可以反代 server 了。
https://github.com/yaoweibin/nginx_tcp_proxy_module