This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 months ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
您有每个子域的记录,因此您可以将其指向相同的IP地址或另一个IP地址。
站点的路由仅通过服务器配置完成,因为我不知道它们正在使用什么堆栈,因此我不能说Godaddy或WordPress。
我相信标准的Apache服务器将在
/public_html
中具有主要域,并且在/sub.domain.com
文件夹中的子域。You have an A record for each subdomain, so you can point it to the same IP address or a different one.
The routing of the sites is just done with the server configuration, I can't speak for GoDaddy or WordPress as I don't know what stack they are using.
I believe a standard Apache server would have the main domain in
/public_html
and the subdomain in a/sub.domain.com
folder.