[GH-ISSUE #1287] same port different domain (vhost) #1019

Closed
opened 2026-05-05 12:39:23 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @adisis on GitHub (Jun 14, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1287

I'm using frps & frpc version 0.23.1 on linux Ubuntu AMD64
I'm curious is it possible to use single bind http/https port to serve many domain --> vhost ?

Originally created by @adisis on GitHub (Jun 14, 2019). Original GitHub issue: https://github.com/fatedier/frp/issues/1287 I'm using frps & frpc version 0.23.1 on linux Ubuntu AMD64 I'm curious is it possible to use single bind http/https port to serve many domain --> vhost ?
Author
Owner
<!-- gh-comment-id:502463256 --> @fatedier commented on GitHub (Jun 16, 2019): https://github.com/fatedier/frp#visit-your-web-service-in-lan-by-custom-domains
Author
Owner

@adisis commented on GitHub (Jun 17, 2019):

my point is many domain (not only single domain), is it possible to address many domain into single client ?

custom_domains = www.yourdomain.com, example.com, xyz.com

<!-- gh-comment-id:502702399 --> @adisis commented on GitHub (Jun 17, 2019): my point is many domain (not only single domain), is it possible to address many domain into single client ? custom_domains = www.yourdomain.com, example.com, xyz.com
Author
Owner

@walejandromt commented on GitHub (Jun 23, 2023):

if need multiple custom_domains and subdomains same:

image

frpc.ini

[web-myhost-http]
type = http
local_ip = {{ .Envs.HTTP_LOCAL_IP }}
local_port = {{ .Envs.HTTP_LOCAL_PORT }}
custom_domains = myhost.com,domains.com

[www-web-http]
type = http
local_ip = {{ .Envs.HTTP_LOCAL_IP }}
local_port = {{ .Envs.HTTP_LOCAL_PORT }}
subdomain = www

i need conecte with www.myhost.com and www.domains.com, is it possible?

###EDIT####

i try and not work

frps.ini

[common]
subdomain_host = myhost.com,domains.com

frpc.ini

[chat-web-http]
type = http
local_ip = {{ .Envs.HTTP_LOCAL_IP }}
local_port = {{ .Envs.HTTP_LOCAL_PORT }}
subdomain = chat

[www-web-http]
type = http
local_ip = {{ .Envs.HTTP_LOCAL_IP }}
local_port = {{ .Envs.HTTP_LOCAL_PORT }}
subdomain = www

[jenkins-web-http]
type = http
local_ip = {{ .Envs.HTTP_LOCAL_IP }}
local_port = {{ .Envs.HTTP_LOCAL_PORT }}
subdomain = jenkins
<!-- gh-comment-id:1603679345 --> @walejandromt commented on GitHub (Jun 23, 2023): if need multiple custom_domains and subdomains same: ![image](https://github.com/fatedier/frp/assets/14278594/523ef8e4-d138-40b2-9f6c-14dcb8699cad) frpc.ini ```xml [web-myhost-http] type = http local_ip = {{ .Envs.HTTP_LOCAL_IP }} local_port = {{ .Envs.HTTP_LOCAL_PORT }} custom_domains = myhost.com,domains.com [www-web-http] type = http local_ip = {{ .Envs.HTTP_LOCAL_IP }} local_port = {{ .Envs.HTTP_LOCAL_PORT }} subdomain = www ``` i need conecte with [www.myhost.com](www.myhost.com) and [www.domains.com](www.domains.com), is it possible? ###EDIT#### i try and not work frps.ini ```xml [common] subdomain_host = myhost.com,domains.com ``` frpc.ini ```xml [chat-web-http] type = http local_ip = {{ .Envs.HTTP_LOCAL_IP }} local_port = {{ .Envs.HTTP_LOCAL_PORT }} subdomain = chat [www-web-http] type = http local_ip = {{ .Envs.HTTP_LOCAL_IP }} local_port = {{ .Envs.HTTP_LOCAL_PORT }} subdomain = www [jenkins-web-http] type = http local_ip = {{ .Envs.HTTP_LOCAL_IP }} local_port = {{ .Envs.HTTP_LOCAL_PORT }} subdomain = jenkins ```
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#1019
No description provided.