如何使用机架空间创建子域?
我有一个网站需要为其创建子域,由rackspace 云管理。
该域名已设置并在线。我只需要将当前的 www.mysite.com 复制到 lab.mysite.com 即可。
我该怎么做呢?
我是在云站点列表中还是在域列表下添加子域?
我应该将文件复制到哪里?当前站点位于 ftp 上的 /www.mysite.com/web/content。
I have a site I need to create a subdomain for, managed by rackspace cloud.
The domain is already setup and online. I just need to copy the current www.mysite.com to lab.mysite.com.
How do I go about doing this?
Do I add the subdomain in the cloud sites listing, or under the listing for the domain?
And where do I copy the files to? The current site is at /www.mysite.com/web/content on the ftp.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
实际上,Rackspace 云站点和 Rackspace 云服务器之间有很大区别,管理域/子域的方式也不同。
因此,如果您有云站点帐户,那么它应该是控制面板的一部分。
但如果您使用的是云服务器,那就不一样了:
登录您的 NextGen 管理面板,选择您的服务器,然后打开 DNS 选项卡。
在这里,您可以为您的域 sub.domain.com 添加一条记录,使其与您的服务器 IP 匹配。
然后您必须告诉 Apache 有一个新域需要处理(虚拟主机)。
举个例子,如果你运行的是 Ubuntu 服务器,那么应该可以类似的东西。
PS:还有一个 Rackspace 知识中心的官方文章,但我不喜欢所提议的解决方案。
Actually, there is much difference between Rackspace Cloud Sites and Rackspace Cloud Servers, and the ways to manage domains/subdomains are also different.
So, if you have a Cloud Sites account, that should be a part of the control panel.
But if you are on a Cloud Server, it's not the same thing :
Login to your NextGen admin panel choose your server, and open the DNS tab.
Here, you can add a record for your domain sub.domain.com to make it match your server's IP.
Then you'll have to tell Apache there's a new domain to deal with (a virtual host).
As an example, if you are running an Ubuntu Server, that should work something like that.
PS: There's also an official article in the Rackspace Knowledge Center, but i'm not a fan of the proposed solution.
当您登录 Rackspace 的控制面板时,您可以通过创建新站点来添加子域,就像使用常规站点一样。云站点知识库中有更多信息:创建子域和/或域别名
When you login to the control panel at Rackspace, you can add subdomains by creating new sites like you would with a regular site. There's more information in the Cloud Sites Knowledge Base: Creating Sub-domains and/or Domain Aliases