Kloxo中网站绑定多域名以及泛解析绑定所有子域名的办法
原来不知道如何在Kloxo面板中给一个网站绑定多个域名,只好使用笨方法:增加网站,绑定相应域名并指定相同目录。
现在终于明白重影域名就是parked domain,增加一个重影域名就相当于多绑定了一个域名。例如:caoger.net可以绑定free8.name作为parked domain。KLoxo中的说明如下:
A parked domain is a domain that shares the document root the main domain that it points to. It is not a redirection, but rather sharing of the document roots at the core level itself. All the scripts will automatically work, but with the new domain name. A 'source.com/directory' internally goes to 'destination.com/directory' , though in the address bar of the browser, the url visible would be source.com/directory.
也可以在站点管理页,通过选择“解压/扩展”中“主机别名”来进行多域名绑定。如下图:

不过站点caoger.net只能增加类似bbs.caoger.net这样的子域名作为别名,不能绑定free8.name。如下图:

另外,这里也绑定所有子域名,也就是进行泛解析绑定,上图中的bbs用*替换即可。
You can add * as an alias so that all the subdomains are automatically directed to this domain. Lxadmin will also automatically add a DNS entry for the alias. Once you configure the catchall subdomain with '*', you can add the proper logic in your script to detect the correct subdomain and do accordingly.
原来如此!我还以为只能绑定主域名和www子域名呢
3q
你写的文章太有价值了。感谢无私分享。对于像我这样的新手,太需要这样的教材了。谢谢。