多个子域 - 相同的根目录

发布于 2024-08-16 04:56:31 字数 365 浏览 6 评论 0原文

我有一个通过 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不念旧人 2024-08-23 04:56:31

只需使用 ServerAlias 指令

Just use ServerAlias directive

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文