多个域一个虚拟主机|通配符主机(共享主机)? [英] Multiple Domains to One Virtual Host | Wildcard Host (shared hosting)?

查看:147
本文介绍了多个域一个虚拟主机|通配符主机(共享主机)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下任务:
创建一个网站,该网站与20个不同域的名称访问。

I have the following task: Create one website which is accessible with 20 different domains names.

相同的文件,同一文件夹中,相同的IP。

Same files, same folder, same ip.

问(共享主机):
这可以用裸CNAME指针来完成相同的常见的子域还是我们需要对所有的静态IP?

Question (shared hosting): Can this be accomplish with a bare cname's pointing to the same common subdomain or do we need one static ip for all?

问题是确保共同主办,我试图避免手工打造的cPanel插件域一个接一个。共享主机不允许修改的httpd的conf这允许我创建一个IP通配符的虚拟主机。

The problem is sure shared hosting and I'm trying to avoid creating manually "cpanel addon domains" one by one. Shared hosting doesn't allow to modify httpd conf which allows me to create a wildcard virtual host for an IP.

我想我的问题是自动应答;除非我只使用子站点W¯¯通配符,这在共享主机的作品,我需要一个静态的。 * .domain.com,two.domain.com,three.domain.com=>目录/

I guess my question is auto answered; I'll need a static unless I'm only using subdomain's w wildcard, which works on shared hosting. "*.domain.com", "two.domain.com", "three.domain.com" => directory/

推荐答案

我想你已经回答了你自己的问题,向你敞开的选项

I think you have answered your own question, the options open to you are


  • ServerAlias​​项添加到虚拟主机的配置,通过任何方式提供给您

  • 确保目标的默认虚拟主机的IP是处理你的网站
  • 之一

这篇关于多个域一个虚拟主机|通配符主机(共享主机)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆