【问题标题】:Magento multiple website installation throws error on one website of twoMagento 多网站安装在两个网站中的一个网站上引发错误
【发布时间】:2013-09-20 11:26:15
【问题描述】:

我正在为两个网站运行一个 Magento 1.7.0.2 安装。这是我的 Apache 服务器配置:

<VirtualHost 99.99.99.99:80>
    DocumentRoot /magento
    ServerName domain1.com
    ServerAlias domain2.com

    SetEnvIfNoCase Host domain1\.com MAGE_RUN_CODE=domain1
    SetEnvIfNoCase Host domain2\.com MAGE_RUN_CODE=domain2
    SetEnv MAGE_RUN_TYPE website
</VirtualHost>

我已经测试过这个配置,$_SERVER['MAGE_RUN_CODE']$_SERVER['MAGE_RUN_TYPE'] 包含 domain1domain2website

我已经在 Magento 后端配置了这两个网站。代码为domain1domain2 的两个网站。

当我访问 domain1.com 时,我得到了正确的 Magento 网店。但是当我访问 domain2 时,我收到了 HTTP 500 internal server error 响应。

日志完全没有显示,Apache 日志是干净的,PHP 日志是干净的,var/log/exception.log 是干净的,var/log/system.log 是干净的,并且没有生成报告。已启用日志记录并报告其他错误。

我试图找到什么问题:

  • 将 PHP 的 display_errors 设置为 true,降低错误报告级别并将 Magento 设置为开发人员模式:仍然没有错误。
  • 在域 2 的 Magento 后端创建了一个全新的网站、存储和查看:没有变化。
  • 将 domain2 设置为默认网站(并刷新缓存):没有变化。
  • 为 domain2.com 创建了一个单独的 VirtualHost:正如预期的那样,没有变化。

【问题讨论】:

    标签: magento


    【解决方案1】:

    domain2 的商店启用配置为主页的 CMS 页面。

    CMS 页面可以在 Magento 配置中的 [CMS] -> [Pages] 中启用

    【讨论】:

      猜你喜欢
      • 2012-07-19
      • 1970-01-01
      • 2017-03-29
      • 2012-08-26
      • 2013-01-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多