将域名映射到linux服务器
我通过 GoDaddy.com 购买了域名。我有一个运行 Rackspace Cloud 的 Ubuntu Linux 服务器。在这台服务器上,我启动并运行了 Apache。
我的问题是:如何设置我的域以指向我的 Rackspace Cloud 服务器。更具体地说,我希望 http://www.mydomainname.com 映射到我的 Apache 服务器。
我假设我需要使用 DNS 建立一些东西。
感谢您的帮助。
I bought a domain name with GoDaddy.com. I have a Ubuntu linux server running with Rackspace Cloud. On this server, I have Apache up and running.
My question is this: How can I set up my domain to point to my server with Rackspace Cloud. More specifically, I want http://www.mydomainname.com to map to my Apache server.
I am assuming that I need to establish something with DNS.
Thank you for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
创建一个新的 A 记录并将
www
指向您的 IP 地址,例如 69.69.120.200。同样再做一条A记录,@指向同一个IP。然后在Apache中使用
ServerNamedomain.com
创建相应的虚拟主机Make a new A record and point
www
to your ip address, eg 69.69.120.200. Also make another A record and point @ to the same IP.Then make corresponding virtualhosts in Apache with
ServerName domain.com
按照 meder 的说明创建记录,然后在 GoDaddy 界面中,您需要将名称服务器指向 Rackspace 上的名称服务器。
Create the record as meder said, then in the GoDaddy interface you will need to point the name server to the name servers at Rackspace.