WordPress在单个IP上安装多个多站点?

是否有人在一个IP地址上运行多个多站点安装?我想设置多个多站点安装,但是我只有一个IP地址可供使用。 问题是,我想使用Donncha的WordPress MU域映射插件为每个安装映射多个域。 我想设置多组安装,这样每个组都有自己的独立数据库和管理员权利。每个安装将有多个域映射到它。如果一个安装需要离线(或中断),然后其他安装仍能正常工作。 有什么想法吗?这可能吗? 我正在使用3.0 RC2;我的wp中有以下几行-配置.php用法: define( \"WP_ALLOW_MULTISITE\", true );define( \"MULTISITE\", true );define( \"SUBDOMAIN_INSTALL\", true> my apache config is here (with wildcard): ServerName mysite1234example.comServerAlias www.mysite1234example.comServerAlias *.mysite1234example.comDocumentRoot /storage/www/mysite1234example.comServerAdmin webmaster@localhostLogLevel warnErrorLog /storage/logs/mysite1234example.com/error_logCustomLog /storage/logs/mysite1234example.com/access_log combinedServerSignature OffOptions FollowSymLinksAllowOverride AllOptions Indexes FollowSymLinks MultiViewsAllowOverride AllOrder allow,denyallow from all 我的区域文件中的通配符DNS中有Matt的一行: ;wildcard dns and subdomain for wordpress multi site;http://ma.tt/2003/10/wildcard-dns-and-sub-domains/*. mysite1234example.com. 14400 IN A 192.168.0.0 是的,您可以从单个站点运行多个多站点安装是的,事实上,IP地址无关紧要,<;VirtualHost*:80>;工作正常。(我在fedora上使用apache2,现在在UbuntuLTS上使用AmazonEC2)如果你有一个不是wordpress的特定目录,你也可以在它进入wordpress之前捕获子域站点。使用在通配符列表之前有一个单独的VirtualHost列表。 <;VirtualHost*:80>; 服务器名notwp.mysite1234示例.com 文档根目录/storage/www/mysite1234example.com/notwp 等等。 <;VirtualHost*:80>; 服务器名mysite1234example.com网站 服务器别名http://www.mysite1234example.com 服务器别名*.mysite1234example.com网站 等等。 我应该添加,继续其他列表: <;VirtualHost*:80>; ServerName example2.com ServerAliashttp://www.example2.com ServerAlias*.example2.com 文档根目录/storage/www/wpsinstall2 等。 <;VirtualHost*:80>; 服务器名示例3.com 服务器别名http://www.example3.com ServerAlias*.example3.com 文档root/storage/www/anotherwpsinstall 等。 好的,那么在apache配置中同一IP上的所有非WP站点都需要在WP站点之前列出,对吗? 如何将域指向DNS中的IP? 例如: (安装1–IP 192.168.0.0) mainsite123.com;还托管以下域 –domain123.com –domain456.com –domain789.com (安装2–IP 192.168.0.0) mainsite456.com;还托管以下域 –domain987.com –domain654.com –domain321.com 显然,您需要为mainsite123.com和mainsite456.com设置DNS区域文件以指向IP 192.168.0.0,domain123.com如何知道指向安装1而不安装2,反之亦然,domain987.com如何知道指向安装2而不安装1? 您是简单地设置一个A记录,将主域下的每个域指向正确的IP,还是每个域都需要自己的特定区域文件? 好吧,我想了很久…这是一个合法的Apache配置,可以在一个IP地址上混合多个非WP和WP安装吗? # non-WP InstallServerName foobar123.comServerAlias www.foobar123.comServerAlias *.foobar123.comDocumentRoot /storage/www/foobar123.comServerAdmin webmaster@localhostLogLevel warnErrorLog /storage/logs/foobar123.com/error_logCustomLog /storage/logs/foobar123.com/access_log combinedServerSignature OffOptions FollowSymLinksAllowOverride AllOptions Indexes FollowSymLinks MultiViewsAllowOverride AllOrder allow,denyallow from all# WP Install number 1ServerName mainsite123.comServerAlias www.mainsite123.comServerAlias *.mainsite123.comServerAlias domain123.comServerAlias www.domain123.comServerAlias *.domain123.comServerAlias domain456.comServerAlias www.domain456.comServerAlias *.domain456.comServerAlias domain789.comServerAlias www.domain789.comServerAlias *.domain789.comDocumentRoot /storage/www/mainsite123.comServerAdmin webmaster@localhostLogLevel warnErrorLog /storage/logs/mainsite123.com/error_logCustomLog /storage/logs/mainsite123.com/access_log combinedServerSignature OffOptions FollowSymLinksAllowOverride AllOptions Indexes FollowSymLinks MultiViewsAllowOverride AllOrder allow,denyallow from all# WP Install number 2ServerName mainsite456.comServerAlias www.mainsite456.comServerAlias *.mainsite456.comServerAlias domain987.comServerAlias www.domain987.comServerAlias *.domain987.comServerAlias domain654.comServerAlias www.domain654.comServerAlias *.domain654.comServerAlias domain321.comServerAlias www.domain321.comServerAlias *.domain321.comDocumentRoot /storage/www/mainsite456.comServerAdmin webmaster@localhostLogLevel warnErrorLog /storage/logs/mainsite456.com/error_logCustomLog /storage/logs/mainsite456.com/access_log combinedServerSignature OffOptions FollowSymLinksAllowOverride AllOptions Indexes FollowSymLinks MultiViewsAllowOverride AllOrder allow,denyallow from all 捕获–我想使用Donncha的WordPress MU域映射插件来映射每个安装的多个域。 是的,有捕获.IP地址很便宜,这会让你的工作轻松很多。你的缺点是:你添加的域名越多,事情就越慢。 你几乎做到了。对于每个指向自己的doc根的虚拟主机,类似这样的命令: # WP Install number 2ServerName mainsite456.comServerAlias http://www.mainsite456.comServerAlias *.mainsite456.com,domain987.com, domain654.com, domain321.comDocumentRoot /storage/www/mainsite456.comServerAdmin webmaster@localhostLogLevel warnErrorLog /storage/logs/mainsite456.com/error_logCustomLog /storage/logs/mainsite456.com/access_log combinedServerSignature OffOptions FollowSymLinksAllowOverride AllOptions Indexes FollowSymLinks MultiViewsAllowOverride AllOrder allow,denyallow from all 如果在一次安装中运行多个网络,则只需要这些额外的通配符。如果你每次安装都有一个IP地址,你可以在里面放一个通配符,这样在每个IP上抛出的任何域都会被WP捕获。 我周末在WordCamp Chicago讨论过这个问题。请参见此处的幻灯片: http://www.slideshare.net/andrearenick/domain-mapping 特别是幻灯片19到21。 [鞠躬,因为我收到了Andrea的回复;-)] 好的,所以我只需要主站点doc root的通配符,而不是所有其他域? 我在Godaddy DNS中为主站点域设置了两个A记录: @.mainsite456.com -> 192.168.0.0*.mainsite456.com -> 192.168.0.0 其中第二个是通配符(代替Matt在:http://ma.tt/2003/10/wildcard-dns-and-sub-domains/) 我在奥托的帖子中遵循了步骤1-3地址: http://ottopress.com/2010/wordpress-3-0-multisite-domain-mapping-tutorial/ 我目前的问题是要显示\"工具\">;\"域映射\"菜单选项向上。向上现在,我的管理面板不会显示它。 我已经创建了第二个博客,但是我没有一个工具>;域映射菜单来查看它。 给出了什么? 我应该提到,我安装了WP3.0域映射插件的主干版本,而不是wordpress插件下载页上的版本。 请确保域-映射.php(插件文件)在mu plugins文件夹中,而不是通常的plugins文件夹中。如果你没有

admin_action_{$_REQUEST[‘action’]}

do_action( "admin_action_{$_REQUEST[‘action’]}" )动作钩子::在发送“Action”请求变量时激发。Action Hook: Fires when an ‘action’ request variable is sent.目录锚点:#说明#源码说明(Description)钩子名称的动态部分$_REQUEST['action']引用从GET或POST请求派生的操作。源码(Source)更新版本源码位置使用被使用2.6.0 wp-admin/admin.php:...

日期:2020-09-02 17:44:16 浏览:1127

admin_footer-{$GLOBALS[‘hook_suffix’]}

do_action( "admin_footer-{$GLOBALS[‘hook_suffix’]}", string $hook_suffix )操作挂钩:在默认页脚脚本之后打印脚本或数据。Action Hook: Print scripts or data after the default footer scripts.目录锚点:#说明#参数#源码说明(Description)钩子名的动态部分,$GLOBALS['hook_suffix']引用当前页的全局钩子后缀。参数(Parameters)参数类...

日期:2020-09-02 17:44:20 浏览:1033

customize_save_{$this->id_data[‘base’]}

do_action( "customize_save_{$this-&gt;id_data[‘base’]}", WP_Customize_Setting $this )动作钩子::在调用WP_Customize_Setting::save()方法时激发。Action Hook: Fires when the WP_Customize_Setting::save() method is called.目录锚点:#说明#参数#源码说明(Description)钩子名称的动态部分,$this->id_data...

日期:2020-08-15 15:47:24 浏览:775

customize_value_{$this->id_data[‘base’]}

apply_filters( "customize_value_{$this-&gt;id_data[‘base’]}", mixed $default )过滤器::过滤未作为主题模式或选项处理的自定义设置值。Filter Hook: Filter a Customize setting value not handled as a theme_mod or option.目录锚点:#说明#参数#源码说明(Description)钩子名称的动态部分,$this->id_date['base'],指的是设置...

日期:2020-08-15 15:47:24 浏览:866

get_comment_author_url

过滤钩子:过滤评论作者的URL。Filter Hook: Filters the comment author’s URL.目录锚点:#源码源码(Source)更新版本源码位置使用被使用 wp-includes/comment-template.php:32610...

日期:2020-08-10 23:06:14 浏览:904

network_admin_edit_{$_GET[‘action’]}

do_action( "network_admin_edit_{$_GET[‘action’]}" )操作挂钩:启动请求的处理程序操作。Action Hook: Fires the requested handler action.目录锚点:#说明#源码说明(Description)钩子名称的动态部分$u GET['action']引用请求的操作的名称。源码(Source)更新版本源码位置使用被使用3.1.0 wp-admin/network/edit.php:3600...

日期:2020-08-02 09:56:09 浏览:848

network_sites_updated_message_{$_GET[‘updated’]}

apply_filters( "network_sites_updated_message_{$_GET[‘updated’]}", string $msg )筛选器挂钩:在网络管理中筛选特定的非默认站点更新消息。Filter Hook: Filters a specific, non-default site-updated message in the Network admin.目录锚点:#说明#参数#源码说明(Description)钩子名称的动态部分$_GET['updated']引用了非默认的...

日期:2020-08-02 09:56:03 浏览:834

pre_wp_is_site_initialized

过滤器::过滤在访问数据库之前是否初始化站点的检查。Filter Hook: Filters the check for whether a site is initialized before the database is accessed.目录锚点:#源码源码(Source)更新版本源码位置使用被使用 wp-includes/ms-site.php:93910...

日期:2020-07-29 10:15:38 浏览:809

WordPress 的SEO 教学:如何在网站中加入关键字(Meta Keywords)与Meta 描述(Meta Description)?

你想在WordPress 中添加关键字和meta 描述吗?关键字和meta 描述使你能够提高网站的SEO。在本文中,我们将向你展示如何在WordPress 中正确添加关键字和meta 描述。为什么要在WordPress 中添加关键字和Meta 描述?关键字和说明让搜寻引擎更了解您的帖子和页面的内容。关键词是人们寻找您发布的内容时,可能会搜索的重要词语或片语。而Meta Description则是对你的页面和文章的简要描述。如果你想要了解更多关于中继标签的资讯,可以参考Google的说明。Meta 关键字和描...

日期:2020-10-03 21:18:25 浏览:1622

谷歌的SEO是什么

SEO (Search Engine Optimization)中文是搜寻引擎最佳化,意思近于「关键字自然排序」、「网站排名优化」。简言之,SEO是以搜索引擎(如Google、Bing)为曝光媒体的行销手法。例如搜寻「wordpress教学」,会看到本站的「WordPress教学:12个课程…」排行Google第一:关键字:wordpress教学、wordpress课程…若搜寻「网站架设」,则会看到另一个网页排名第1:关键字:网站架设、架站…以上两个网页,每月从搜寻引擎导入自然流量,达2万4千:每月「有机搜...

日期:2020-10-30 17:23:57 浏览:1264