【发布时间】:2013-12-17 12:41:19
【问题描述】:
我已经解决了在为现有的实时 Magento 商店设置暂存环境时遇到的问题。但我不明白为什么它会起作用以及为什么我的现场网站上没有问题。
这是我遇到的错误,每当我尝试离开我的站点登台主页时,我都会收到 500 内部服务器错误。
在错误日志中我得到了这个:
[Tue Dec 17 01:12:52 2013] [error] [client 127.0.0.1] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Tue Dec 17 12:56:17 2013] [error] [client 127.0.0.1] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://localhost.mysite.com/
有了一点research online,我通过将.htaccess 文件RewriteBase 设置更改为RewriteBase / 解决了这个问题。在我的实时站点上,此设置被注释为 #RewriteBase /magento/。
- 为什么只有在我的暂存环境中才需要此设置?
- 是否也应该在现场环境中使用,还是应该避免使用 完全?
- 我在 Ubuntu 上的 Apache2 服务器上本地运行该站点 机器,也许它与我的本地服务器设置有关?
【问题讨论】:
标签: apache .htaccess magento redirect internal-server-error