多个子域 - 相同的根目录
我有一个通过 Plesk 访问并为客户端管理的共享服务器。
我需要设置子域,但无法使用通配符子域,因此我所做的是将子域创建为子文件夹。所有子域都使用相同的应用程序(每个子域都有一些小的更改,例如徽标、标题等)。
目前我有42个子域,这些都是流量相对较低的站点。我没有为每个子文件夹创建一个子文件夹(在本例中为 42),而是创建了一个子文件夹并将所有子域指向该文件夹,该文件夹有一个 index.php 文件,其中是通用应用程序的入口点。
我的问题是这是一个合适的解决方案吗?除了移动服务器之外,我看不到更易于管理的解决方案?因为在不久的将来我将拥有更多的子域。您认为子域的临界数量是多少?但我想这取决于他们的流量有多少?
在任何智慧之言之后,非常感谢。
I have a shared server I access via Plesk and manage for a client.
I needed to set up sub-domains but I was unable to use wild-card sub-domains so what I did was to create sub-domains as sub-folders. All sub-domains use the same app (with small changes per sub-domain, such as logo, title etc).
At the moment I have 42 sub-domains, which are all relatively low-traffic sites. Instead of creating a sub-folder (42 in this instance) for each I created one sub-folder and pointed all sub-domains to this folder, which has an index.php file in which is the entry point to the common application.
My question is is this a suitable solution? other than moving servers I cant see a more manageable solution? As I will have many more sub-domains in the near future. What do you think is the critical number of sub-domains? But I guess it depends on how much they are trafficed?
Just after any words of wisdom, many thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需使用 ServerAlias 指令
Just use ServerAlias directive