如何在另一个硬件上托管子域

发布于 2024-09-27 23:52:55 字数 153 浏览 3 评论 0原文

我的网站(用 PHP 开发)目前有 2 个子域并托管在同一服务器硬件上。由于流量过大,我想将一个子域移至另一硬件。这可能吗?

通常,域名服务器指向托管提供商 DNS 条目。如果有两个子域托管在两个不同的服务器上,我需要遵循哪些步骤来设置,例如更改“A”或 CNAME 记录等。

My website (developed in PHP) is currently having 2 sub domains and hosted on the same server hardware. Due to heavy traffic, I want to move one sub domain to another hardware. Is this possible?

Generally domain Name Servers point out to hosting provider DNS entries. If there are two sub domains hosted on two different servers, what are the steps I need to follow to setup like changing "A" or CNAME records and etc.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

网名女生简单气质 2024-10-04 23:52:55

是的,这是可以做到的。修改子域名的A记录,使其指向不同的服务器。但是,必须配置 Web 服务器来处理子域的请求。

Yes, it can be done. Change the A records of subdomains to point to different servers. However, web server has to be configured to serve requests for the sub domains.

宛菡 2024-10-04 23:52:55

尝试设置一个代理服务器,例如 nginx 或 lighttpd,其虚拟域指向本地网络上的每个服务器。

如果两台服务器位于两个不同的公共 IP 地址上,那么您可以通过互联网注册商(即 godaddy)进行设置,但如果它们位于同一地址上,请确保启用通配符域。

Try setting up a proxy server such as nginx or lighttpd with virtual domains that point to each of the servers on your local network.

If the two servers will be on two separate public ip addresses, then you can just set it up through your internet registrar (i.e. godaddy), but if they are on the same, make sure you enable wildcard domains.

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