首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Wordpress -在IIS上的2台服务器上平衡-无法安装新主题

Wordpress -在IIS上的2台服务器上平衡-无法安装新主题
EN

Stack Overflow用户
提问于 2021-11-15 10:18:09
回答 1查看 19关注 0票数 1

我在2台由负载均衡器管理的IIS服务器上安装并配置了Wordpress。

当我上传一个新的主题"essentials“时,上传进行得很顺利。

当我尝试预览我的essentials主题(外观->主题->,我在essentials主题上选择“实时预览”)时,我得到错误500。网络请求为:

https://xxxx/?customize_changeset_uuid=7a0a2113-ff98-40ba-ae4a-f12fd96c92c7&customize_theme=essentials&customize_messenger_channel=preview-0&customize_autosaved=on

表单数据:

代码语言:javascript
复制
_method: GET
wp_customize: on
customize_theme: essentials
nonce: 246d76c7f3
customize_changeset_uuid: 7a0a2113-ff98-40ba-ae4a-f12fd96c92c7
customize_autosaved: on
customized: {"old_sidebars_widgets_data":{"wp_inactive_widgets":[],"sidebar-1":["recent-posts-2"],"sidebar-2":["archives-2","categories-2","meta-2"]},"nav_menu_locations[menu-1]":2}
customize_messenger_channel: preview-0

例如,当我单击其他有效主题(名为twentynineteen)的预览时,我会看到以下内容

https://xxxx/?customize_changeset_uuid=e471b84f-c500-4a81-8c0b-d8f49ca62410&customize_theme=twentynineteen&customize_messenger_channel=preview-1&customize_autosaved=on

表单数据:

代码语言:javascript
复制
_method: GET
wp_customize: on
customize_theme: twentynineteen
nonce: 4cbd22eb68
customize_changeset_uuid: e471b84f-c500-4a81-8c0b-d8f49ca62410
customize_autosaved: on
customized: {"old_sidebars_widgets_data":{"wp_inactive_widgets":[],"sidebar-1":["recent-posts-2"],"sidebar-2":["archives-2","categories-2","meta-2"]},"nav_menu_locations[menu-1]":2}
customize_messenger_channel: preview-1

我签出了,我的essentials主题存在于两台服务器上的\wp-content\themes文件夹中。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-11-15 10:47:04

我设法解决了这个问题。第二台服务器上的web.config神秘地遗漏了这条规则

代码语言:javascript
复制
<rule name="xxxx http to https" stopProcessing="true">
 <match url="(.*)" ignoreCase="true" />
 <conditions logicalGrouping="MatchAll">
  <add input="{HTTP_HOST}" pattern="^(www.)?xxxx\.com$" />
  <add input="{HTTPS}" pattern="off" />
  <add input="{URL}" pattern="(.*)" />
 </conditions>
 <action type="Redirect" url="https://xxxx/{R:1}" redirectType="Permanent" />
</rule>

它以前就在那里。可能是升级或者什么东西把它删除了。

xxxx代表我的域名

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69972764

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档