[GH-ISSUE #3139] frp有空主机头功能吗 #2516

Closed
opened 2026-05-05 13:37:18 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @befen on GitHub (Oct 20, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/3139

Describe the feature request

举个例子,这样可以有默认网站
[abc.com]
type = http
local_ip = 127.0.0.1
local_port = 80
custom_domains = *

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @befen on GitHub (Oct 20, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/3139 ### Describe the feature request 举个例子,这样可以有默认网站 [abc.com] type = http local_ip = 127.0.0.1 local_port = 80 custom_domains = * ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@Becods commented on GitHub (Oct 22, 2022):

那你为什么不直接tcp

[web]
type = tcp
local_ip = 127.0.0.1
local_port = 80
remote_port = 80
<!-- gh-comment-id:1287829108 --> @Becods commented on GitHub (Oct 22, 2022): 那你为什么不直接tcp ``` [web] type = tcp local_ip = 127.0.0.1 local_port = 80 remote_port = 80 ```
Author
Owner

@befen commented on GitHub (Oct 23, 2022):

这样不能同时多个客户端使用

<!-- gh-comment-id:1287972013 --> @befen commented on GitHub (Oct 23, 2022): 这样不能同时多个客户端使用
Author
Owner

@ityc commented on GitHub (Nov 2, 2022):

type = http 的本质类似虚拟主机
给个 * 怎么标识

另,不太理解你所指的多客户端使用是 abc.com 这个重复吗
如果是 可以加设备名上去

<!-- gh-comment-id:1299987206 --> @ityc commented on GitHub (Nov 2, 2022): type = http 的本质类似虚拟主机 给个 * 怎么标识 另,不太理解你所指的多客户端使用是 abc.com 这个重复吗 如果是 可以加设备名上去
Author
Owner

@befen commented on GitHub (Nov 2, 2022):

比如一个服务端,A客户端绑定*(类似空主机头),默认的http请求都转发到A,其他的客户端就正常绑定custom_domains

<!-- gh-comment-id:1299991929 --> @befen commented on GitHub (Nov 2, 2022): 比如一个服务端,A客户端绑定*(类似空主机头),默认的http请求都转发到A,其他的客户端就正常绑定custom_domains
Author
Owner

@ityc commented on GitHub (Nov 2, 2022):

在之前, frp 仅作为映射工具,如果你需要实现以上功能 建议通过 tcp 配合服务端应用,例如(nginx)实现

---原始邮件---
发件人: @.>
发送时间: 2022年11月2日(周三) 晚上6:19
收件人: @.
>;
抄送: @.@.>;
主题: Re: [fatedier/frp] frp有空主机头功能吗 (Issue #3139)

比如一个服务端,A客户端绑定*(类似空主机头),默认的http请求都转发到A,其他的客户端就正常绑定custom_domains


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>

<!-- gh-comment-id:1300259039 --> @ityc commented on GitHub (Nov 2, 2022): 在之前, frp 仅作为映射工具,如果你需要实现以上功能 建议通过 tcp 配合服务端应用,例如(nginx)实现 ---原始邮件--- 发件人: ***@***.***&gt; 发送时间: 2022年11月2日(周三) 晚上6:19 收件人: ***@***.***&gt;; 抄送: ***@***.******@***.***&gt;; 主题: Re: [fatedier/frp] frp有空主机头功能吗 (Issue #3139) 比如一个服务端,A客户端绑定*(类似空主机头),默认的http请求都转发到A,其他的客户端就正常绑定custom_domains — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: ***@***.***&gt;
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#2516
No description provided.