mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #287] 怎么配置多端口,多应用的http代理? #208
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#208
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 @jun4997 on GitHub (Mar 31, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/287
比如我有 a,b,c三个应用,我要映射到三个一个域名下的三个端口上该怎么配置
@zhongheng666 commented on GitHub (Apr 5, 2017):
我的配置是这样的
Server:
[common]
bind_port=7000
vhost_http_port=server.port
dashboard_port=7500
dashboard_user=admin
dashboard_pwd=admin
[web]
type=http
custom_domains=examp1.com
auth_token=123
[web1]
type=http
custom_domains=examp2.com
auth_token=123
Client:
[common]
server_addr=server.ip
server_port=7000
auth_token=123
[web]
type=http
local_port=client.port1
[web1]
type=http
local_port=client.port2
按理说应该访问examp1.com的时候应该访问到的是client的port1的web服务,访问examp2.com的时候应该访问到client的port2的web服务,但是实际上都是访问到了port1的web服务。
所以我也是同问。
@swshag commented on GitHub (Apr 20, 2017):
[common]
server_addr = 10.0.0.0
server_port = 00000
privilege_token = *******
[web01]
type = http
local_ip = 127.0.0.0
local_port = 5000
use_gzip = true
use_encryption = true
pool_count = 20
privilege_mode = true
custom_domains = www.****.com
locations = /
[web02]
privilege_mode = true
type = http
local_ip = 127.0.0.0
local_port = 5005
custom_domains = www.****.com
locations = /news,/about
我也同问!
@openmynet commented on GitHub (Apr 23, 2017):
借助nginx实现啊
http://app1.testapp.com => client:8081
http://app2.testapp.com => client:8082
http://app3.testapp.com => client:8083
1. 浏览器/App->2. 服务器[2.1 nginx->2.2 frps] ->3. frpc@yfhust commented on GitHub (Oct 1, 2018):
弱弱问一下,服务器上运行多个frps实例可以解决这个问题吗?小白不懂nginx配置
@snowdream commented on GitHub (Feb 23, 2019):
对于最新的版本,应该怎么解决这个问题。
@kunlong-luo commented on GitHub (Jan 17, 2020):
nginx 到底配置在服务器还是客户端?
@openmynet commented on GitHub (Jan 26, 2020):
浏览器 -> 服务器【-> nginx -> frps】 -> frpc[ports...]
@shaojs321 commented on GitHub (Dec 23, 2021):
我如果没理解错,你这是同一台frpc有多个http服务,但是路由不一样,可以使用frp的URL功能https://gofrp.org/docs/features/http-https/route/
@piwawa commented on GitHub (Apr 15, 2023):
./frpc -c frpc.inifailed to parse proxy sd, err: custom_domains and subdomain should set at least one of themfrpc.ini 这样设置就报错了啊