WordPress 站群域名映射

huoyejia 笔记

WordPress MU Domain Mapping
WP站群域名映射【插件】

Map any blog/site on a WordPressMU or WordPress 3.X network to an external domain.
映射博客/站点WordPressMU或者WordPress 3.X网络到外部域名。

This plugin allows users of a WordPress MU site or WordPress 3.0 network to map their blog/site to another domain.
这个插件允许用户一个WordPress 3站点或WordPress MU网络映射博客/网站到另一个域。

It requires manual installation as one file must be copied to wp-content/. When upgrading the plugin, remember to update domain_mapping.php and sunrise.php. Full instructions are on the Installation page and are quite easy to follow. You should also read this page too.
它需要手动安装,必须作为一个文件复制到wp – content/。当升级插件,记得更新domain_mapping.php和sunrise.php。完整说明在安装页面,很容易跟踪。你也应该阅读下这个页面

Super administrators must configure the plugin in Super Admin->Domain Mapping. You must enter the IP or IP addresses (comma deliminated) of your server on this page. The addresses are purely for documentation purposes so the user knows what they are (so users can set up their DNS correctly). They do nothing special in the plugin, they’re only printed for the user to see.
必须超级管理员在超级管理员- >域映射菜单配置插件。您必须输入你的服务器的IP或IP地址,(逗号分割)在这一页上。地址纯粹是文文档目的,是让用户知道它们是什么(这样用户可以建立自己正确的域名DNS)。他们在插件中没有什么用,他们只是为让用户看的。

You may also define a CNAME on this page. It will most likely be the domain name of your network. See below for some restrictions and warnings.
你也可以在此页面上定义一个CNAME。这很可能是你的网站的域名。看看下面的一些限制和警告。

Your users should go to Tools->Domain Mapping where they can add or delete domains. One domain must be set as the primary domain for the blog. When mapping a domain, (like ‘example.com’) your users must create an A record in their DNS pointing at that IP address. They should use multiple A records if your server uses more than one IP address. If your user is mapping a hostname of a domain (sometimes called a “subdomain”) like http://www.example.com or blog.example.com it’s sufficient to create a CNAME record pointing at their blog url (NOT IP address).
你的用户可以去工具->域映射在那里添加或删除域名。必须设置一个域作为博客的主域名。当映射一个域名时,(如“example.com”)用户必须在他们的DNS里创建一个A记录指向这个IP地址。他们应该使用多个记录,如果你的服务器使用一个以上的IP地址。如果你的用户是映射一个域名的主机头(有时称为“子域名”)类似http://www.example.com或blog.example.com,创造一个CNAME记录指向他们的博客网址(不是IP地址)就足矣。

The login page will almost always redirect back to the blog’s original domain for login to ensure the user is logged in on the original network as well as the domain mapped one. For security reasons remote login is disabled if you allow users to use their Dashboard on the mapped domain.
登录页面将几乎总是重定向回博客的原始域登录确保用户登录原网络以及域映射。出于安全原因,远程登录被禁用,如果你允许用户使用他们映射域的仪表板。

Super admins can now choose to either allow users to setup DNS ANAME records by supplying an IP (or list of IP addresses) or set a CNAME but not both (entering a CNAME for the end user voids the use of IP’s)
超级管理员现在可以选择如何让用户设置服务器名称记录,是提供一个IP(或IP地址列表)不是设置一个CNAME,但不是两个同时(输入CNAME则废止最终用户使用IP)。

There is a lot of debate on the handling of DNS using CNAME and ANAME so both methods are available depending on your preference and setup.
有很多关于DNS用CNAME 和ANAME的争议,其实两种方法都可用,这取决于您的偏好和配置。

Things to remember:
要记住的东西:

  • CNAME records that point to other CNAME records should be avoided (RFC 1034 section 5.2.2) so only tell your end users to use your chosen domain name as their CNAME DNS entry if your domain name is an ANAME to an IP address (or addresses)
    CNAME记录指向其他CNAME记录应避免(RFC 1034部分5.2.2),所以只能告诉你的最终用户使用你选择的域名作为他们的CNAME域名服务器入口,如果您的域名是一个ANAME,它指向一个IP地址(或网址)。
  • Only use the CNAME method if your main domain is an ANAME of an IP address. This is very important. How do you know? Check your dns or ask your hosting company.
    只使用CNAME方法,如果你的主域名是一个IP地址的ANAME名称。这是非常重要的。你如何各知呢?查询您的域名服务商或问您的主机托管公司。
  • Giving your users the option to just use your chosen domain name and not an IP (or list of IP’s) to set as their CNAME will make administration of your WordPressMU blog platform or WordPress 3.0 network easier, an example of this would be purchasing/deploying a new server or indeed adding more servers to use in a round robin scenario. Your end users have no need to worry about IP address changes.
    让您的用户可以选择,只使用你选择的域名而不是一个IP(或IP名单)设置为他们的CNAME,会让管理你的WordPressMU博客平台或者WordPress 3.0网络更加容易,这方面的一个例子是,采购/部署一个新服务器或增加更多的服务器在一个轮询剧本中。而你的最终用户不必担心IP地址的变化。
  • Finally, telling your end users to use an ANAME IP or CNAME domain name is up to you and how your systems are deployed.
    最后,告诉你的最终用户使用一个ANAME IP或是CNAME记录域名是由你和你的系统部署。
  • Further Reading: http://www.faqs.org/rfcs/rfc2219.html
    进一步阅读:http://www.faqs.org/rfcs/rfc2219.html
  • For localization: place translation files (ie. wordpress-mu-domain-mapping-xx_XX.mo) in the directory wp-content/plugins/wordpress-mu-domain-mapping/languages. You will probably have to create that directory yourself.
    关于本地化:放置翻译文件(例如wordpress-mu-domain-mapping-xx_XX.mo)到目录wp-content/plugins/wordpress-mu-domain-mapping/languages。你可能需要自己创建该目录。

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>