[GH-ISSUE #2828] [Feature Request] 访问的时候可以不加端口号嘛 #2262

Closed
opened 2026-05-05 13:27:22 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @mofei828 on GitHub (Mar 7, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2828

Describe the feature request

网上用了一个大佬免费提供的FRP,可以域名后不加端口号直接访问,现在自己尝试配置frps,
vhost_http_port不写打不开,写了就必须写端口号,想实现域名后不加端口号的方式,求大佬指点一下

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 @mofei828 on GitHub (Mar 7, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/2828 ### Describe the feature request 网上用了一个大佬免费提供的FRP,可以域名后不加端口号直接访问,现在自己尝试配置frps, vhost_http_port不写打不开,写了就必须写端口号,想实现域名后不加端口号的方式,求大佬指点一下 ### 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

@xqzr commented on GitHub (Mar 7, 2022):

80 就可以不加。

<!-- gh-comment-id:1060272928 --> @xqzr commented on GitHub (Mar 7, 2022): 写 `80` 就可以不加。
Author
Owner

@Becods commented on GitHub (Mar 7, 2022):

frps想要让frpc能绑定域名则必须指定vhost_http_port

或者,使用tcp把frpc端的web服务映射出去

# frps.ini
[common]
bind_port = 7000
# frpc.ini
[common]
server_addr = x.x.x.x
server_port = 7000

[web]
type = tcp
local_port = 80
<!-- gh-comment-id:1060642673 --> @Becods commented on GitHub (Mar 7, 2022): frps想要让frpc能绑定域名则必须指定`vhost_http_port` 或者,使用tcp把frpc端的web服务映射出去 ``` # frps.ini [common] bind_port = 7000 ``` ``` # frpc.ini [common] server_addr = x.x.x.x server_port = 7000 [web] type = tcp local_port = 80 ```
Author
Owner

@entrehuihui commented on GitHub (Mar 8, 2022):

nginx转发

<!-- gh-comment-id:1061301200 --> @entrehuihui commented on GitHub (Mar 8, 2022): nginx转发
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#2262
No description provided.