【发布时间】:2015-12-20 16:59:29
【问题描述】:
我按照 [Magento 的说明集][1] 在 Ubuntu 14.04 上安装了 Magento2:
获得 [SUCCESS] 后:Magento 安装完成。该网站应该可以运行,但出现 ERR_TOO_MANY_REDIRECTS 错误。
我怀疑虚拟主机配置错误,因为此服务器上有几个站点。
nfcshop.ca.conf 文件来自sites-available 并链接到sites-enabled
<VirtualHost *:80>
ServerName nfcshop.ca
ServerAlias nfcshop.ca
ServerAdmin admin@nfcshop.ca
DocumentRoot /var/www/magento
Redirect permanent / http://nfcshop.ca/
ErrorLog ${APACHE_LOG_DIR}/shop-error.log
CustomLog ${APACHE_LOG_DIR}/shop.log combined
<Directory /var/www/magento/>
AllowOverride All
</Directory>
</VirtualHost>
我在var/www/magento 中放了一个.htaccess 文件
Order deny,allow
Deny from all
服务 apache2 重启 [OK]
我尝试了不同的浏览器并清除缓存和cookie无济于事。
同一服务器上的所有其他站点仍在运行。不知道我错过了什么。谢谢!
【问题讨论】:
-
这可能很明显,但您是否尝试删除重定向永久行?
-
显然是正确的,谢谢!如果你把它放在答案中,我会投票。
-
很高兴它成功了!我已经添加了我的答案。
标签: apache .htaccess magento ubuntu