【发布时间】:2011-06-27 12:56:37
【问题描述】:
我正在 LAMP 堆栈中创建一个应用程序,我希望为用户提供使用他们自己的域而不是我网站的子域的能力。例如。
代替:http://some_user.mysite.com
他们将使用:http://store.some_user.com/
我知道有几家公司使用 CNAME 记录提供此服务。 (http://help.bigcartel.com/articles/14-using-a-custom-domain) 但是我不确定他们是如何实现端到端的。
我的问题是:
这个过程叫什么? (所以如果需要,我可以进一步研究)
我需要做什么来提供这个? IE。我需要在 DNS、apache 和 php 端做什么才能使其正常工作?
任何建议、链接或代码 sn-ps 将不胜感激。
谢谢
更新
到目前为止,我已经能够设置通配符 DNS 条目,但是在解析到其他域的 CNAME 记录时仍然存在问题。 例如。
http://store.weareunified.com/ -> http://weareunified.joshstuart.com.au/
weareunified.com(这是一个测试用户主机)DNS
weareunified.com. A 111.67.3.227
store CNAME weareunified.joshstuart.com.au.
joshstuart.com.au(这是主应用程序主机)DNS
joshstuart.com.au. A 111.67.3.227
* CNAME joshstuart.com.au.
【问题讨论】:
标签: php dns lamp domain-name cname