[英]How can I configure wildcard/catchall domains in OpenShift Online?
My app handles a ton of sub-domains (www.example.org, foo.example.org, bar.example.org, ...). 我的应用程序处理大量子域(www.example.org,foo.example.org,bar.example.org等)。
Due to the big amount and the fact that the sub-domains are determined based on regular exports from another system , it would be virtually impossible to manually add all of them as OpenShift Online domain aliases. 由于数量众多且子域是根据来自另一个系统的常规导出确定的,因此几乎不可能手动将所有子域添加为OpenShift Online域别名。
Is there a way to configure OpenShift to do a catch all? 有没有一种方法可以配置OpenShift来完成全部工作?
So far I've tried entering things like *.example.org
, @.example.org
and .example.org
, but OpenShift says "The specified alias is not allowed" 到目前为止,我已经尝试输入
*.example.org
, @.example.org
和.example.org
,但是OpenShift表示“不允许使用指定的别名”
OpenShift Online does not currently support wildcard subdomains. OpenShift Online当前不支持通配符子域。 You would have to add each domain as a separate alias.
您必须将每个域添加为单独的别名。 I would suggest you use subfolders instead of subdomains (www.example.com/username instead of username.example.com)
我建议您使用子文件夹而不是子域(www.example.com/username而不是username.example.com)
I don't know if this was just added recently or you didnt find it, but I think you are looking for this: 我不知道这是最近才添加的还是您没有找到,但我认为您正在寻找:
*.example.com. 300 IN A 192.168.133.2
https://docs.openshift.org/latest/admin_guide/install/prerequisites.html#environment-requirements https://docs.openshift.org/latest/admin_guide/install/prerequisites.html#environment-requirements
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.