[GH-ISSUE #220] 二级域名配置失败 #148

Closed
opened 2026-05-05 11:52:12 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @natugrey on GitHub (Jan 10, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/220

client端启动返回错误

Parse conf error: proxy [web] custom_domains must be set when type equals http

我的frps.ini

[common]
bind_addr = x.x.x.x
bind_port = 4443
dashboard_port = 6443
vhost_http_port = 80
vhost_https_port = 443
log_file = ./frps.log
log_level = debug
log_max_days = 3
privilege_mode = true
privilege_token = 123
max_pool_count = 50
subdomain_host = xxxx.com

[ssh]
listen_port = 6666
auth_token = 123

我的frpc.ini

[common]
server_addr = x.x.x.x
server_port = 4443
log_file = ./frpc.log
log_level = debug
log_max_days = 3
auth_token = 123
privilege_token = 123

[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
use_encryption = true
use_gzip = false
pool_count = 10

[web]
privilege_mode =true
type = http
local_ip = 127.0.0.1
local_port = 80
subdomain = test
Originally created by @natugrey on GitHub (Jan 10, 2017). Original GitHub issue: https://github.com/fatedier/frp/issues/220 client端启动返回错误 ``` Parse conf error: proxy [web] custom_domains must be set when type equals http ``` 我的frps.ini ``` [common] bind_addr = x.x.x.x bind_port = 4443 dashboard_port = 6443 vhost_http_port = 80 vhost_https_port = 443 log_file = ./frps.log log_level = debug log_max_days = 3 privilege_mode = true privilege_token = 123 max_pool_count = 50 subdomain_host = xxxx.com [ssh] listen_port = 6666 auth_token = 123 ``` 我的frpc.ini ``` [common] server_addr = x.x.x.x server_port = 4443 log_file = ./frpc.log log_level = debug log_max_days = 3 auth_token = 123 privilege_token = 123 [ssh] type = tcp local_ip = 127.0.0.1 local_port = 22 use_encryption = true use_gzip = false pool_count = 10 [web] privilege_mode =true type = http local_ip = 127.0.0.1 local_port = 80 subdomain = test ```
gitea-mirror 2026-05-05 11:52:12 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@natugrey commented on GitHub (Jan 10, 2017):

按照readme上面来的,哪儿出问题了,求助

<!-- gh-comment-id:271536027 --> @natugrey commented on GitHub (Jan 10, 2017): 按照readme上面来的,哪儿出问题了,求助
Author
Owner

@natugrey commented on GitHub (Jan 10, 2017):

客户端frpc.ini修改

[web]
privilege_mode =true
type = tcp
local_ip = 127.0.0.1
local_port = 80
remote_port = 80
subdomain = test
<!-- gh-comment-id:271540076 --> @natugrey commented on GitHub (Jan 10, 2017): 客户端frpc.ini修改 ``` [web] privilege_mode =true type = tcp local_ip = 127.0.0.1 local_port = 80 remote_port = 80 subdomain = test ```
Author
Owner

@fatedier commented on GitHub (Jan 10, 2017):

非特权模式创建有点问题,不是很紧急,之后修复。

<!-- gh-comment-id:271540482 --> @fatedier commented on GitHub (Jan 10, 2017): 非特权模式创建有点问题,不是很紧急,之后修复。
Author
Owner

@natugrey commented on GitHub (Jan 12, 2017):

如果不使用二级域名有办法一个frps对应多个frpc上的web应用吗

<!-- gh-comment-id:272078144 --> @natugrey commented on GitHub (Jan 12, 2017): 如果不使用二级域名有办法一个frps对应多个frpc上的web应用吗
Author
Owner
<!-- gh-comment-id:272084108 --> @fatedier commented on GitHub (Jan 12, 2017): https://github.com/fatedier/frp/blob/master/README_zh.md#通过自定义域名访问部署于内网的-web-服务
Author
Owner

@talosu commented on GitHub (Mar 20, 2017):

@fatedier vhost_http_port只能设置一个,怎么对应多个frpc上的web应用呢?

<!-- gh-comment-id:287712806 --> @talosu commented on GitHub (Mar 20, 2017): @fatedier vhost_http_port只能设置一个,怎么对应多个frpc上的web应用呢?
Author
Owner

@talosu commented on GitHub (Mar 20, 2017):

@fatedier 已经用特权模式实现了,打扰了

<!-- gh-comment-id:287718276 --> @talosu commented on GitHub (Mar 20, 2017): @fatedier 已经用特权模式实现了,打扰了
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#148
No description provided.