Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多个站点同一个源站如何合并成1个 #162

Closed
qq8554650 opened this issue Jul 17, 2023 · 5 comments
Closed

多个站点同一个源站如何合并成1个 #162

qq8554650 opened this issue Jul 17, 2023 · 5 comments
Labels
enhancement New feature or request released

Comments

@qq8554650
Copy link

背景与遇到的问题

http://a.com
http://www.a.com
https://a.com
https://www.a.com
要配置4个站点,实际对应后面1个。有什么办法简化吗

建议的解决方案

No response

@zclaiqcc
Copy link
Collaborator

能简化成两个,但是没法简化成 1 个,核心问题是端口。

创建一个站点,域名写 a.com,监听 80 端口,上游写你的业务服务器;创建另一个站点,域名也写 a.com,监听 443 端口,开启 ssl,上传证书,上游写你的业务服务器即可

@zclaiqcc zclaiqcc reopened this Jul 17, 2023
@zclaiqcc
Copy link
Collaborator

zclaiqcc commented Jul 17, 2023

可以考虑的进一步的方案是:

  1. 在页面上支持配置多个端口,每个端口可以单独配置是否开启 ssl。这样上游服务器填一次就行。
  2. 支持 http 转到 https,https://github.com/chaitin/safeline/issues/67,这样也可以只配置一个站点,把 http 的流量都转到 https

感觉没必要,也就是把两个站点优化成了一个。考虑整体站点数量也不会太多,而且站点配置大多数是一次性的,配置完几乎不会再调整了,实际上没啥太大区别,先 open 着看看情况吧。

@Lorna0 Lorna0 added the enhancement New feature or request label Jul 20, 2023
@Lorna0 Lorna0 changed the title 多个站点如何合并成1个 多个站点同一个源站如何合并成1个 Aug 16, 2023
@luweijun1992
Copy link

luweijun1992 commented Aug 17, 2023

多个站点使用,|;隔开支持把,支持多种方式。

a.com,b.com,c.com,d.com
a.com;b.com;c.com;d.com

@Lorna0
Copy link
Collaborator

Lorna0 commented Aug 23, 2023

3.0 可以给站点配置多个域名和多个端口了,可以升级试试:
image

@Lorna0 Lorna0 closed this as completed Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

No branches or pull requests

5 participants
@zclaiqcc @qq8554650 @Lorna0 @luweijun1992 and others